Solved

DNS & CNAME issue

Posted on 2006-11-07
8
553 Views
Last Modified: 2013-12-23
Help!

I've a really urgent issue with a BIND DNS server.

I needed to add an A record for a server to the mydomain.be zone, I also noticed there was a CNAME for the same server pointing somewhere else, so I deleted it and just added the A record, changed the serial number and saved.

Now more than 12 hours later the url is still pointing to the CNAME and not the new A record.

I'm stuck; I've checked everything I can think of... Any help much appreciated as quickly as possible.

Thanks!


0
Comment
Question by:Sunny-Brussels
  • 5
  • 3
8 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 17888443
> Now more than 12 hours later the url is still pointing to the CNAME and not the new A record.
have You restarted named as well?
It's normal that propagation of the record lasts from 1 upto 2 days. It depends on the TTL value You set.
To verify Your nameserver ask him directly:
host the.name.to.ask ip.of.Your.dnsserver
host -a the.name.to.ask ip.of.Your.dnsserver
0
 

Author Comment

by:Sunny-Brussels
ID: 17888500
Thanks for the quick reply.

Yes, I have restarted named, and I've typed in the commands you mention and indeed it still does have a CNAME pointing to another server. Looks like the TTL is set to 600.

0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17888516
If it still serves the CNAME, then it propably uses another configuration file from the one You used, OR it was not really restarted.
BTW: You sure You are changing it on master nameserver - not slave?
verify if serial was bumped to the value You set with: host -t soa domain.to.ask ip.of.server
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17888533
bind usually runs in chroot - that's why it's possible that You modified wrong file.
eg.
there is
/var/named/somedoman.tld
and
/var/named/var/named/somedoman.tld

sometimes startup script (like /etc/rc.d/init.d/named) populates the changes, sometimes doesn't.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:Sunny-Brussels
ID: 17888659
There are 2 DNS servers here, wires were crossed and I was working on the secondary, which I am told is a reverse proxy for mydomain.be.

So, I have gone to DNS1, and looked in the master directory and edited the mydomain.be config file, there was no CNAME line for my server anyhow, so I just added the A record.

I did the query you mention, it says 2006080201 in the zone file it says 2006080204

No change, still points to the CNAME :(



0
 
LVL 43

Accepted Solution

by:
ravenpl earned 500 total points
ID: 17888743
I'm sorry, but You have to find proper config to modify
host -t soa mydomain.be # will tell You where the master nameserver is(if it's configures properly) - it's the first value from SOA record.
Find it's IP, go there, modify the proper zone file, restart(make the named not running for sure).
I will not help You anymore - I will not find the proper config for You, but read /etc/named.conf file to find it out. Also note my previous note: bind can run chrooted, then all paths should be extended with chroot prefix (eg. /var/named).
0
 

Author Comment

by:Sunny-Brussels
ID: 17888941
I was in the right file.

 I managed to get a result by doing a# kill -HUP # on the process.

You helped me and I'm grateful for that and I've learnt somethings I didn't know.

Thanks!
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 17888970
> I managed to get a result by doing a# kill -HUP # on the process.
It only shows, that named was not restarted!
HUP instructs running named to reread configuration files.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now