- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: setting up a dns server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 06:33 PM
тАО02-26-2004 06:33 PM
setting up a dns server
nslookup
**** Can't find server name for address 155.44.33.15: Server failed
**** Default servers are not available
Here are the steps I took setting dns up:
mkdir /etc/named.data
cd /etc/named.data
hosts_to_named -r -d div.inc.com -n 155.44.33
mv named.boot /etc
/etc/resolv.conf:
domain div.inc.com
nameserver 155.44.33.15
cp /etc/nsswitch.hp_default /etc/nsswitch.conf
hosts: dns [NOTFOUND=return] nis [NOTFOUND=return] files
#not using nis
ch_rc -a -p NAMED='1' /etc/rc.config.d/namesvrs
ch_rc -a -p NAMED_ARGS='"-c /etc/named.boot"' /etc/rc.config.d/namesvrs
/sbin/init.d/named start
named is running but i get the above error messages when running nslookup on the server (155.44.33.15).
any suggestions?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 06:36 PM
тАО02-26-2004 06:36 PM
Re: setting up a dns server
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 06:46 PM
тАО02-26-2004 06:46 PM
Re: setting up a dns server
Perhaps your named was already running, for instance, before doing the start. You can check this using 'ps -ef | grep named'. On the command line of named you should see the '-c /etc/named.boot' you defined.
Also check your /var/adm/syslog/syslog.log for messages from your named. Problems in the configurations are written there, normally.
Perhaps posting your named.boot will give us some more info on how to check and repair this...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 06:48 PM
тАО02-26-2004 06:48 PM
Re: setting up a dns server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 07:05 PM
тАО02-26-2004 07:05 PM
Re: setting up a dns server
;
; .....
;
directory /etc/named.data ; ...
primary 0.0.127.IN-ADDR.ARPA db.127.0.0
primary div.inc.com db.div
primary 33.44.155.IN-ADDR.ARPA db.155.44.33
primary . db.root
yes, i've stopped and restarted named few times while trying out a few things already
in syslog.log
starting named ...
/etc/named.boot:1: syntax error near ;
listening on [155.44.33.15].53 (lan0)
listening on [127.0.0.1].53 (lo0)
forwarding source address is [0.0.0.0].57135
ready to answer queries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 07:13 PM
тАО02-26-2004 07:13 PM
Re: setting up a dns server
No root nameservers for class IN
and in /etc/named.boot the first line is just the semi-colon nothing else. Adding a blank line to the top of the file just moves the syntax error to line 2.
/etc/named.boot:2: syntax error near ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 07:24 PM
тАО02-26-2004 07:24 PM
Re: setting up a dns server
And the reason it is not working: it complains about the named.boot having a incorrect syntax. This could be caused by the named needing a named.conf if you specify -c. Try replacing the 'c' with a 'b': NAMED_ARGS="-b /etc/named.boot"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 07:42 PM
тАО02-26-2004 07:42 PM
Re: setting up a dns server
and just using the named.conf file instead of named.boot, without any arguments (/etc/named.conf is the default) is working just fine.
using -b /etc/named.boot gave the same errors as before
thanks for the assistance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2004 05:51 PM
тАО02-28-2004 05:51 PM
Re: setting up a dns server
I guess you have to add the IP address of your DNS server in db.root file.
regards,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2004 06:29 PM
тАО02-28-2004 06:29 PM
Re: setting up a dns server
builds the database for dns off /etc/hosts
That is not the only way to go.
You can do it manually too.
Here is a guide.
http://www.tldp.org/HOWTO/DNS-HOWTO-5.html
This is a linux document. It worked perfectly on HP-UX
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-29-2004 07:27 PM
тАО02-29-2004 07:27 PM
Re: setting up a dns server
As it is NS for internal use only, try to set localhost as nameserver on this machine, i.e.
/etc/resolv.conf:
domain div.inc.com
nameserver 127.0.0.1
Also try to set "files" before "dns" in nsswitch.conf. or set
hosts: dns [NOTFOUND=continue] dns [NOTFOUND=return]
to proceed to /etc/hosts if hostname was not found in DNS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-29-2004 07:32 PM
тАО02-29-2004 07:32 PM
Re: setting up a dns server
hosts: dns [NOTFOUND=continue] files [NOTFOUND=return]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-29-2004 09:02 PM
тАО02-29-2004 09:02 PM
Re: setting up a dns server
It sounds like you want to do non-recursive DNS, as you won't have an internet connection. In case you are not aware, this means that your DNS will not do lookups on domains that it is not authoritive for. This is most likely where the server failed error is coming from, especially as you have define a DNS root server file, db.root.
You can do non-recursion with BIND8 in the named.conf file with
"recursion no;"
in your options {} config block.
HTH
dan.