Operating System - HP-UX
1833813 Members
3327 Online
110063 Solutions
New Discussion

domain name server doesn't work well !!!

 
Eric_83
Occasional Advisor

domain name server doesn't work well !!!

I proberbly modified all files that
can change original configuration.
but when i restarted the named daemon(/sbin/init.d/named stop and start)
it always reference old domain name.

oh,,, I really need help !!!
cool_boy
5 REPLIES 5
sven verhaegen
Respected Contributor

Re: domain name server doesn't work well !!!

how do you check for the domainname , nslookup of an existing hostname , what is in the DB files for that hostname/IP specifically , did you have a look at that , what is in the nsswitch.conf file (do you use NIS or Files first for instance) , do you just do 'domainname' on the prompt ??? resolv.conf contains the correct nameserver reference ???

etc.. please some more info
...knowing one ignores a greath many things is the first step to wisdom...
Eric_83
Occasional Advisor

Re: domain name server doesn't work well !!!

nslookup www.111121233.com
Using /etc/hosts on: ns

looking up FILES
Trying DNS
*** ns.aaaaaaa.com.cn can't find www.111121233.com: Non-existent domain

I modified domain name in /etc/resolv.conf
into bbbbbbb .

and I removed zone from /etc/named.conf of

aaaaaaa.

but I registed www.ccc.com in /etc/named.conf
I can use nslookup program get the ip address of it.

#nslookup www.ccc.com
Using /etc/hosts on: ns

looking up FILES
Trying DNS
Name: www.ccc.com
Address: 111.111.111.111

what can i do?

cool_boy
Chris Wilshaw
Honored Contributor

Re: domain name server doesn't work well !!!

You probably need to update /etc/named.boot in order to complete the changes.

This file contains the location and names of all the DNS db files that your system will acknowledge.
sven verhaegen
Respected Contributor

Re: domain name server doesn't work well !!!

as said ,inded named.boot must reflect the correct domain , have you tried re-making your original named.conf you used for the first DB creations and running HOST_TO_NAMED again effectively recreating your DB (hope you kept up to date you hosts file in that case) ??? that will make al the needed changes in all the needed files , that avoids you from forgetting to alter anything anywhere....
...knowing one ignores a greath many things is the first step to wisdom...
Sarah Mokwana
Occasional Advisor

Re: domain name server doesn't work well !!!

Hello

Did you edited
# /etc/named.data/param and put "-d doamin name", "-n subnet",
"-b /etc/named.boot".
And then
# hosts_to_named -f param
:to recreate and reread the DNS config files,
# sig_named restart
You are the star in your own category,shine as high as you can