- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- comments in /etc/hosts and /etc/named.data
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
тАО05-15-2003 05:56 AM
тАО05-15-2003 05:56 AM
209.90.236.66 wally mail # comment
209.90.236.67 frank # comment
Is there any problem with that?
And, how would I do a similar thing to the db files in /etc/named.data for DNS?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:04 AM - last edited on тАО01-10-2021 03:55 PM by Ramya_Heera
тАО05-15-2003 06:04 AM - last edited on тАО01-10-2021 03:55 PM by Ramya_Heera
Re: comments in /etc/hosts and /etc/named.data
Fred,
I can tell you for a fact that there's no problem with the /etc/hosts comments because I do exactly the same thing.
As for /etc/named.data, I'm not sure but I would think it should be OK.
https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c01440077
https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c01927913
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:04 AM
тАО05-15-2003 06:04 AM
Re: comments in /etc/hosts and /etc/named.data
It is 100% safe to add comments that way in /etc/hosts. As for files in /etc/named.data, a comment line begins with ";" as the very fisrt character on the line.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:05 AM
тАО05-15-2003 06:05 AM
Re: comments in /etc/hosts and /etc/named.data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:09 AM
тАО05-15-2003 06:09 AM
Re: comments in /etc/hosts and /etc/named.data
myserver IN A 209.90.236.66 ; comment
If anyone has done this with success let me know...
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:11 AM
тАО05-15-2003 06:11 AM
Re: comments in /etc/hosts and /etc/named.data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:11 AM
тАО05-15-2003 06:11 AM
Re: comments in /etc/hosts and /etc/named.data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:13 AM
тАО05-15-2003 06:13 AM
Re: comments in /etc/hosts and /etc/named.data
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/25-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/25-toc.html&searchterms=named.data&queryid=20030515-080300
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:14 AM
тАО05-15-2003 06:14 AM
Re: comments in /etc/hosts and /etc/named.data
for example in db.doamin file
hostname IN A ip-address
hostname IN TXT "comments"
In /etc/hosts file you can use comments the way you mentioned without any problem
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:16 AM
тАО05-15-2003 06:16 AM
Re: comments in /etc/hosts and /etc/named.data
http://www.docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html
You will lot of examples on this document (for eg: Check "Configuring and Administering BIND ..." then "Configuring primary master name server")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:17 AM
тАО05-15-2003 06:17 AM
Re: comments in /etc/hosts and /etc/named.data
http://www.docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html
You will find lot of examples on this document (for eg: Check "Configuring and Administering BIND ..." then "Configuring primary master name server")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:36 AM
тАО05-15-2003 06:36 AM
SolutionI have just looked into the files in /etc/named.data and found that in addition to creating a comment at the beginnig of a line, you can also add it to the end of a line. Look at /etc/named.data/boot.cacheonly as an example:
;
; type domain source file
;
directory /tmp/named.data ; running directory for named
primary 0.0.127.IN-ADDR.ARPA db.127.0.0
cache . db.cache
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2003 06:41 AM
тАО05-15-2003 06:41 AM
Re: comments in /etc/hosts and /etc/named.data
Fred