- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help with hosts_to_named and DNS config
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
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
тАО01-27-2011 05:33 AM
тАО01-27-2011 05:33 AM
We are using HP-UX and hosts_to_named to run our DNS. Everything is working fine, but now we wanna have domain to resolve without using www prefix.
Now we get to our web-server with entering: www.aaa.com, but we also wanna have the folloing to work: aaa.com
Our web-server is hosted outside our own domain, and this is reflected in the hosts_to_named command as you will see.
In our /etc/hosts we have the following entry:
# External web-server-address
xyx.xyx.xyx.xyx www.aaa.com www
We have a spcl that looks like this:
cat spcl.aaa.com
$@ IN MX 5 post.aaa.com.
And the command line to hosts_to_named looks like this:
/var/named;hosts_to_named -F -d aaa.com -a xyx.xyx.xyx -a a.a.a
-n d.a.b -n d.b.b -n d.c.b -n d.d.b -n d.e.b -n d.f.b -n d.g.b
-M -u postmaster@aaa.com -o 10800:3600:604800:86400 -s here -s ns22 -s ns33 -s ns.there.com -b /etc/named.boot
Can I put something in spcl to get it right, or must I modify the commandline to get our domain to resolve to www.aaa.com without the www-prefix? Please advice on how to do this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 05:41 AM
тАО01-27-2011 05:41 AM
SolutionYou show above:
xyx.xyx.xyx.xyx www.aaa.com www
Why not make it:
xxx.xxx.xxx.xxx www.aaa.com aaa.com
..I thought if you use the hostfile to build your DNS, maybe this would help.
Just a thought,hopefully those DNS guru's will jump in quickly and give you the right way.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 05:49 AM
тАО01-27-2011 05:49 AM
Re: Help with hosts_to_named and DNS config
I was confused by some other notes on the subject I found searching with google, and didn't try this before now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 08:24 AM
тАО01-27-2011 08:24 AM
Re: Help with hosts_to_named and DNS config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 08:36 AM
тАО01-27-2011 08:36 AM
Re: Help with hosts_to_named and DNS config
the host_to_named is for initial creation of your DNS configuration using the host file to generate the dns config files.
once you have dns configured why dont you just edit the appropriate files, changing what you need, recycle named and be done with it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 08:41 AM
тАО01-27-2011 08:41 AM
Re: Help with hosts_to_named and DNS config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 11:25 PM
тАО01-27-2011 11:25 PM
Re: Help with hosts_to_named and DNS config
hosts_to_named created the zone files in /var/named (assuming you have first cd into that dir)
On db.aaa file modify the aaa zone to add the line:
aaa.com CNAME www.aaa.com.
You should use TABs to separate the entries!.
Then in the same file, increment the Serial no of the zone (usually this is 1 afther running hosts_to_named script). It is a common practice to set this serial no. like this:
YYYYMMDDvv
(
where of course:
YYYY - Year like 2010
MM - month 01
DD - day 28
vv - release 00
so will be 2010012800.
)
To force the named server to re-read its database, you should send a SIGHUP signal. (kill -1 named's pid). Or stop/start the named process (not an elegant solution).
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2011 01:45 AM
тАО02-09-2011 01:45 AM
Re: Help with hosts_to_named and DNS config
On db.aaa file modify the aaa zone to add the line:
aaa.com CNAME www.aaa.com.
This worked fine for ├Г┬е few days, but now suddenly something is broken.
Instead for resolving like this:
www.aaa.com -> aaa.com
This has become:
www.aaa.com -> aaa.com.aaa.com
Can anybody tell med what is wrong, and why this changed after some days?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2011 04:22 AM
тАО02-24-2011 04:22 AM
Re: Help with hosts_to_named and DNS config
Can you post here aaa.com zone?
Best regards,
Horia.
Horia.