Hi All, i have DNS configured on my centos 5.2 server. it's all working fine, right now i want to change the main public dns from one IP to another to do some testing (the new public dns ip has records which the old one doesnt have and it's done as such for testing) so i got into /etc/resolv.conf and changed the first nameserver to the NEW public DNS. /etc/init.d/network restart /etc/init.d/named restart when i issue an nslookup example.com ON the dns server, i get the exact IP i want to do testing on. but when i do nslookup example.com on the clients machine. the website resolves to another IP ( the one set in the initial public dns records) is there any other changes i need to do for the DNS server redirects its requests to the new public dns ?
Hi, If you are working on real TLD, you have to change you dns server on the dns provider side. If you made a whois of your domain name : Example : http://generationip.com/whois?Whois=generationip.com Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. Domain Name: GENERATIONIP.COM Registrar: EURODNS S.A Whois Server: whois.eurodns.com Referral URL: http://www.eurodns.com Name Server: NS1.EURODNS.COM Name Server: NS2.EURODNS.COM Status: clientTransferProhibited Updated Date: 05-mar-2009 Creation Date: 17-mar-2005 Expiration Date: 17-mar-2011 The named server define in this case is : Name Server: NS1.EURODNS.COM Name Server: NS2.EURODNS.COM those name server are declared at AUTHORITY server's, if you must define new dns server, you have to change the named server of this zone to your new authority server. Best regards Fabien FAYE RHCE www.generationip.com Free network tools & HOWTO for centos and Redhat ----- Original Message ----- From: "Roland Roland" <R_O_L_A_N_D at hotmail.com> To: "CentOS mailing list" <centos at centos.org> Sent: Monday, January 25, 2010 3:35:26 PM Subject: [CentOS] DNS issue.. help ?! Hi All, i have DNS configured on my centos 5.2 server. it's all working fine, right now i want to change the main public dns from one IP to another to do some testing (the new public dns ip has records which the old one doesnt have and it's done as such for testing) so i got into /etc/resolv.conf and changed the first nameserver to the NEW public DNS. /etc/init.d/network restart /etc/init.d/named restart when i issue an nslookup example.com ON the dns server, i get the exact IP i want to do testing on. but when i do nslookup example.com on the clients machine. the website resolves to another IP ( the one set in the initial public dns records) is there any other changes i need to do for the DNS server redirects its requests to the new public dns ? _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
Greetings, On Mon, Jan 25, 2010 at 8:05 PM, Roland Roland <R_O_L_A_N_D at hotmail.com>wrote:> Hi All, > > but when i do nslookup example.com on the clients machine. the website > resolves to another IP ( the one set in the initial public dns records) > >Could it be because of the dns cache onthe client side? Regards Rajagopal -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100126/c929edfd/attachment-0001.html>
On Monday 25 January 2010 09:35, Roland Roland wrote:> it's all working fine, right now i want to change the main public dns > from one IP to another to do some testing (the new public dns ip has > records which the old one doesnt have and it's done as such for testing) > > so i got into /etc/resolv.conf and changed the first nameserver to the > NEW public DNS. > /etc/init.d/network restart > /etc/init.d/named restart > > when i issue an nslookup example.com ON the dns server, i get the exact > IP i want to do testing on. > but when i do nslookup example.com on the clients machine. the website > resolves to another IP ( the one set in the initial public dns records)Hmmm, sounds like you change the resolv.conf on the DNS server and not the clients machine. In this case every thing worked as it is supposed to. If you are just testing then might I suggest you do it like this. On the clients machine type in the following: nslookup <host your want to lookup> <IP address of test dns server> or if DIG is installed; dig @<IP address of test dns server> <host your want to lookup> This will cause nslookup and/or DIG to use the DNS server you want to test.> is there any other changes i need to do for the DNS server redirects its > requests to the new public dns ?resolv.conf does not direct and queries that come in to the DNS server. It is for the servers use only. Lookups and serving a zone at two totally different processes. -- Regards Robert Linux User #296285 http://counter.li.org