1838427 Members
3182 Online
110126 Solutions
New Discussion

CNAME resolv problem

 
SOLVED
Go to solution
Sachin Patel
Honored Contributor

CNAME resolv problem

Hi
In my primary dns server I add CNAME for other centers in my main zone file. something like
Sav-1 IN CNAME Sav-1.vdgc.co.uk.
Sav-2 IN CNAME Sav-2.vdgc.co.uk.
Sti-1 IN CNAME Sti-1.vdgc.co.uk.
Tri-1 IN CNAME Tri-1.vdgc.co.uk.
Wks-1 IN CNAME Wks-1.vdgc.co.uk.

I also downloads the map of vdgc.co.uk as sec.vdgc.co.uk and so master can resolv this name
#nslookup Sav-1
Trying DNS
Name: Sav-1.vdgc.co.uk
Address: 10.55.2.198
Aliases: Sav-1.vdgc.com

On my secondary server I am not downloading sec.vdgc.co.uk but I have sec.vdgc.com file which has CNAME reference
Secondary# grep Sav-1 *
sec.vdgc.com:Sav-1 86400 IN CNAME Sav-1.vdgc.co.uk.

I am still not able to resolv the name
secondary#nslookup Sav-1
Name Server: secondary.vdgc.com
Address: 10.20.0.8

Trying DNS
*** can't find Sav-1: Non-existent domain

What is going on here?

Sachin
Is photography a hobby or another way to spend $
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: CNAME resolv problem

I suspect one of two things:

1) the domain statement is missing or different from the first dns server in /etc/resolv.conf

2) The zone records in /var/named are not consistent betweent the two servers.

Correct this and the problem should go away.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sachin Patel
Honored Contributor

Re: CNAME resolv problem

They both same
Is photography a hobby or another way to spend $
harry d brown jr
Honored Contributor

Re: CNAME resolv problem


Which version of BIND are you using?

Can you post your /etc/resolv.conf and /etc/nsswitch.conf?

and the domain names on both servers is the same?

live free or die
harry
Live Free or Die
Sachin Patel
Honored Contributor

Re: CNAME resolv problem

primary 8.3.3
secondary 8.2.2

primary
domain vdgc.com
nameserver 10.20.16.1 #braque

Secondary
domain vdgc.com
nameserver 10.20.0.8

Sachin
Is photography a hobby or another way to spend $
Sachin Patel
Honored Contributor

Re: CNAME resolv problem

Forgot nsswitch.conf

primary & secondary
hosts: dns files

If I pull vdgc.co.uk zone to secondary then name resolv works for that CNAME

Sachin
Is photography a hobby or another way to spend $
Elmar P. Kolkman
Honored Contributor
Solution

Re: CNAME resolv problem

Also, since you only have the CNAME record on the secondary name server, you need the primary for the A record... So you have 2 possibilities for it: put both servers (first the secondary, then the primary DNS) in the /etc/resolv.conf or put a forwarder record in named.conf.
Every problem has at least one solution. Only some solutions are harder to find.