- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Search or Domain in /etc/resolv.conf ??
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
тАО08-08-2003 09:34 AM
тАО08-08-2003 09:34 AM
We run /etc/resolv.conf on our servers as "DNS clients". We DON'T run "named"
on our servers.
About a month ago, (I thought) they asked me to change our /etc/resolv.conf to
look like this:
# cat resolv.conf
search wabtec.com wcc.wabtec.com wab.wabtec.com wab.wabco-rail.com
nameserver 172.20.203.21 # wccnts001.wabtec.com
nameserver 172.20.203.22 # wccnts002.wabtec.com
#nameserver 166.109.1.3 # ns.digex.com
They changed our registed domain name from "wabco-rail.com" to "wabtec.com".
Now they tell me, no, they meant that I should put both a search and a domain
statement in the resolv.conf, like this:
# cat resolv.conf
domain wcc.wabtec.com
search wabtec.com wcc.wabtec.com wab.wabtec.com wab.wabco-rail.com
nameserver 172.20.203.21 # wccnts001.wabtec.com
nameserver 172.20.203.22 # wccnts002.wabtec.com
#nameserver 166.109.1.3 # ns.digex.com
Do I want to do that? Is it legal?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2003 09:40 AM
тАО08-08-2003 09:40 AM
Re: Search or Domain in /etc/resolv.conf ??
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2003 09:53 AM
тАО08-08-2003 09:53 AM
Re: Search or Domain in /etc/resolv.conf ??
domain - The domain entry is needed only when the local system's host name (as returned by the hostname command) is not a domain name, and the search option is not configured.
search - The first domain in the search list must be the local domain.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&con=/hpux/onlinedocs/B2355-90685/00/00/26-con.html&toc=/hpux/onlinedocs/B2355-90685/00/00/26-toc.html&searchterms=resolv.conf&queryid=20020109-113052
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2003 10:21 AM
тАО08-08-2003 10:21 AM
Re: Search or Domain in /etc/resolv.conf ??
search and domain are mutually exclusive. In other word, if you use search then do not use domain and vice versa. If you choose to use search, the first domain in the search list must be the local domain. man resolv.conf for more info.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2003 10:27 AM
тАО08-08-2003 10:27 AM
SolutionI filter some info in the man page resolv.conf for you
....
Search list for host-name lookup. If the search option is not used the search list will contain only the the local domain name. The search list can be changed by listing the desired domain search path following the search keyword with spaces or tabs separating the names. Most resolver queries will be attempted using each component of the search path in turn until a match is found. Note that this process may be slow and generates a lot of network traffic if the servers for the listed domains are not local, and that queries time out if no server is available for one of the domains.
The search list is currently limited to six domains with a total of 256 characters. The first domain in the search list must be the local domain for short names to work properly in various files (such as .rhosts and inetd.sec)
.....
The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance overrides.
...
Hai