Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help in defining a CNAME

Status
Not open for further replies.

stfaprc

Programmer
Feb 10, 2005
216
US
Running BIND 9.2
I have in the zone file:
Code:
dt128.abcd.xyz. IN      A       192.168.1.8
dt128.          IN      CNAME   dt128.abcd.xyz.
This results in an error message of:
dns_master_load: internal/afts.com:57: ignoring out-of-zone data (dt128): 1 Time(s)


How can I setup the CNAME so that users on the LAN can use dt128 as an address instead of the FQDN ?
 
I think you are confusing what a CNAME can do and a search path clause.

It is up to the CLIENT to add the domains (or client resolver library) typically with a search path via DHCP or the file /etc/resolv.conf in Unix.

You cannot (in bind) say dt128 points to dt128.abcd.xyz.

The client must have a search path like
resolv.conf:

server ...
search abcd.xyz

or in windows the DHCP server must give them abcd.xyz as a search path. You can see this with "ipconfig /all" under the Run/cmd.

Now you can add the record to a zone that is in the search path, and that way it can be used:

Suppose the search path has "mydomain.com".
Then I could add in the zone file for "mydomain.com"
dt128 IN CNAME dt128.abcd.xyz.

So when the user types in dt128, the resolver adds the domain mydomain.com to make dt128.mydomain.com. This is a CNAME to dt128.abcd.xyz and voila, it works. Of course, there can't be previously existing dt128 in mydomain.com!

eugene

 
hmm, I don't get what is going on.
The BIND9.2 is running on a RH box.
I went to one of the client pc's just now and
C:\>ipconfig /all

Windows NT IP Configuration

Host Name . . . . . . . . . : prog1.abcd
DNS Servers . . . . . . . . : 192.168.1.5
Node Type . . . . . . . . . : Broadcast
NetBIOS Scope ID. . . . . . :
IP Routing Enabled. . . . . : No
WINS Proxy Enabled. . . . . : No
NetBIOS Resolution Uses DNS : No

Ethernet adapter FA31xND41:

Description . . . . . . . . : NETGEAR FA311/312 PCI Adapter
Physical Address. . . . . . : 00-00-5B-05-D5-07
DHCP Enabled. . . . . . . . : No
IP Address. . . . . . . . . : 192.168.1.9
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 192.168.1.3

C:\>ping dt128

Pinging dt128.abcd.xyz [192.168.1.8] with 32 bytes of data:

Reply from 192.168.1.8: bytes=32 time<10ms TTL=255
The hosts file on the pc just has 127.0.0.1 localhost and
I don't see anything saying to append abcd.xyz ,
so how did it know to translate dt128 to dt128.abcd.xyz ?
 
Is there an entry in the domain field of the DNS tab of the TCP/IP properties?

This must be NT 4.0.
 
Is there an entry in the domain field of the DNS tab of the TCP/IP properties?
ahh, yes, there is.

This must be NT 4.0.
yepp. Just checked on a W2K and it shows the suffix when doing ipconfig /all

 
So either DHCP is giving the suffix search (in the case of W2K). or perhaps hard coded when they setup their network properties. In either case, you can see it is out of BIND's control..it all on the client side configuration.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top