- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Simple DNS server (using Native HP-UX BIND)
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
Forums
Discussions
Discussions
Discussions
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
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
09-26-2006 06:05 AM
09-26-2006 06:05 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:09 AM
09-26-2006 06:09 AM
Re: Simple DNS server (using Native HP-UX BIND)
DNS does not use /etc/hosts It uses zone records in /var/named or /var/named/chroot/var/named
HP has in the past provided a utility called hosts_to_named or similar name that converts an /etc/hosts file to DNS named zone records.
Here is a general how-to, aimed at Linux that I used to learn this years ago.
http://tldp.org/HOWTO/DNS-HOWTO.html
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
09-26-2006 06:11 AM
09-26-2006 06:11 AM
Re: Simple DNS server (using Native HP-UX BIND)
http://docs.hp.com/en/B2355-90775/index.html
Chapter 1 has a nice overview, and Chapter 2 tells you step by step how to configure Bind.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 06:13 AM
09-26-2006 06:13 AM
Re: Simple DNS server (using Native HP-UX BIND)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:36 AM
09-26-2006 07:36 AM
Re: Simple DNS server (using Native HP-UX BIND)
I have 4 IP ranges... 10.1-255.*.* and 192.x.x.x and 172.2-25 and one other. So the hosts_to_named -d network -n number is confusing me and I don't know why the server won't serve addresses up using nslookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 07:49 AM
09-26-2006 07:49 AM
Re: Simple DNS server (using Native HP-UX BIND)
Is named running?
ps -ef |grep named
If no, then check:
/var/adm/named/named.log
Can you post your /etc/named.conf file?
Also, is NAMED=1 in /etc/rc.config.d/namesvrs ?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2006 08:01 AM
09-26-2006 08:01 AM
Re: Simple DNS server (using Native HP-UX BIND)
this is the error that I'm getting....
==================================
> server dnsserver
Specifying a server has overridden the switch policy order.
The reset command will reinstate the order specified by the switch policy.
Default Name Server: dnsserver.domain.com
Address: 10.11.11.11
> nslookup host1
*** Can't find address for server dnsserver: Server failed
> nslookup host1
Name Server: server.domain.com
Address: 10.11.11.11
*** dnsserver can't find nslookup: Server failed
==================================
this is the conf file:
-------------------------------------------
// generated by named-bootconf.pl
options {
check-names response fail; // do not change this
check-names slave warn;
directory "/etc/named.data"; // running directory for named
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// type domain source file
//
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "db.127.0.0";
};
zone "dom.domain.com" {
type master;
file "db.dom";
};
zone "." {
type hint;
file "db.cache";
};
zone "10.IN-ADDR.ARPA" {
type master;
file "db.10";
};
zone "192.IN-ADDR.ARPA" {
type master;
file "db.192";
};
zone "172.IN-ADDR.ARPA" {
type master;
file "db.172";
};
--------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 12:26 AM
09-27-2006 12:26 AM
Re: Simple DNS server (using Native HP-UX BIND)
*** Can't find address for server dnsserver: Server failed
> nslookup host1
Name Server: server.domain.com
Address: 10.11.11.11
*** dnsserver can't find nslookup: Server failed
Okay - that is kind of strange...
Are you running nslookup on the HPUX dnsserver or from another box?
If on the HPUX server (or any other for that matter) - what is in /etc/resolv.conf and what is the hosts line in /etc/nsswitch.conf?
Try uncommenting the // query-source address * port 53;
just remove the // and restart named.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 01:28 AM
09-27-2006 01:28 AM
Re: Simple DNS server (using Native HP-UX BIND)
Regards,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 01:37 AM
09-27-2006 01:37 AM
Re: Simple DNS server (using Native HP-UX BIND)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 01:55 AM
09-27-2006 01:55 AM
Re: Simple DNS server (using Native HP-UX BIND)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 02:40 AM
09-27-2006 02:40 AM
Re: Simple DNS server (using Native HP-UX BIND)
Reverse look ups work... regular look ups fail:
++++++++++++++++++++++++++++++++++++++++++++
nslookup
> 10.11.12.14
Using /etc/hosts on: dns01
looking up FILES (not found)
Trying DNS
Name: host01.domain.com
Address: 10.11.12.14
> host01
Using /etc/hosts on: dns01
looking up FILES (not found)
Trying DNS
*** localhost can't find host01: Server failed
+++++++++++++++++++++++++++++++++++++++++++++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 03:25 AM
09-27-2006 03:25 AM
Re: Simple DNS server (using Native HP-UX BIND)
dig @hpuxserver host1.yourdomain.com
Check the zone file - is there an A record for host1?
Check the /var/adm/named/named.log file for errors related to that zone - maybe it didn't get loaded...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 03:39 AM
09-27-2006 03:39 AM
Re: Simple DNS server (using Native HP-UX BIND)
1.) I don't have "dig", I guess it's not native to HP-UX 11.11?
2.) there is a record in the db.10 file:
11.12.14 IN PTR host01.domain.com.
3.) I don't have a dir /var/adm/named or a named.log file? How do I enable logging?
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 03:55 AM
09-27-2006 03:55 AM
Re: Simple DNS server (using Native HP-UX BIND)
This is what I see when I start named:
Sep 27 09:50:28 dns01 named[15228]: master zone "10.IN-ADDR.ARPA" (IN) rejecte
d due to errors (serial 1)
Sep 27 09:50:28 dns01 named[15228]: master zone "192.IN-ADDR.ARPA" (IN) reject
ed due to errors (serial 1)
Sep 27 09:50:28 dns01 named[15228]: master zone "172.IN-ADDR.ARPA" (IN) reject
ed due to errors (serial 1)
Sep 27 09:50:28 dns01 named[15228]: listening on [10.11.12.14].53 (lan2)
Sep 27 09:50:28 dns01 named[15228]: listening on [127.0.0.1].53 (lo0)
Sep 27 09:50:28 dns01 named[15228]: Forwarding source address is [0.0.0.0].600
00
Sep 27 09:50:28 dns01 named[15229]: Ready to answer queries.
somebody put some underscores in some hostnames in /etc/hosts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 04:01 AM
09-27-2006 04:01 AM
Re: Simple DNS server (using Native HP-UX BIND)
Looks like the format of your zone records does not work. It also appears your system may need another zone record or two, the standards taht come with named.conf
named-checkzone
If BIND for HP-UX does not provide this utility transfer your zone record to a linux machine with bind-utils installed and check them there.
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
09-27-2006 04:36 AM
09-27-2006 04:36 AM
Re: Simple DNS server (using Native HP-UX BIND)
what does this error mean?
=============================================
Sep 27 10:29:28 dns01 named[16364]: sysquery: findns error (NXDOMAIN) on dns01.domain.com?
=============================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 05:19 AM
09-27-2006 05:19 AM
SolutionIf not, then that's your answer.
No dig?
Ah - you have an older version of bind...
Could always upgrade:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND9.2
what does this error mean?
=============================================
Sep 27 10:29:28 dns01 named[16364]: sysquery: findns error (NXDOMAIN) on dns01.domain.com?
It means that dns01.domain.com is the target of an NS record, but there's no A record for that name.
Check the db.dom file!
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 06:06 AM
09-27-2006 06:06 AM
Re: Simple DNS server (using Native HP-UX BIND)
hosts_to_named -d domain.com -n 192
hosts_to_named -d domain.com -n 172} which is what I was doing... meaning only the 172 data was being loaded. The fix was to run it one time like so:
hosts_to_named -d domain.com -n 10 -n 192 -n 172 -r
couldn't have got there without your help... points for you! Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2006 06:59 AM
09-27-2006 06:59 AM