- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting DNS on HP-UX 10.2
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
06-07-2000 11:11 AM
06-07-2000 11:11 AM
Setting DNS on HP-UX 10.2
SAM will allow me to enter the IP address of the DNS with no problem and the system will work fine during the session that I eneterd the DNS info for. The problem is that I am prevented from logging in after I log-out. When I try to log-in the log-in window will disappear an x-windows try to start but then fails and sends me back to the log-in prompt. If I log-in using the fail-safe mode and edit out the DNS entries from netconf
I can then log-in. Does anybody have a clue as to why the entering of DNS info kills the log-in window, and how to get around it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 11:34 AM
06-07-2000 11:34 AM
Re: Setting DNS on HP-UX 10.2
domain companydomain.com
nameserver ###.###.###.###
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 11:49 AM
06-07-2000 11:49 AM
Re: Setting DNS on HP-UX 10.2
When editing the resolv file do I put in the information on all the DNS points that I am using?
There is two DNS ip addresses that I am using, a primary and secondary address.
also are you saying to enter the infolike:
Domain Name
ip address <1.2.3.4> ?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2000 11:59 AM
06-07-2000 11:59 AM
Re: Setting DNS on HP-UX 10.2
domain berry.bls.com
nameserver 90.103.192.21
a second and third nameserver line is allowed.
Brian
<*(((>< er
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 12:06 AM
06-08-2000 12:06 AM
Re: Setting DNS on HP-UX 10.2
If you are simply trying to use an existing server check the following two files.
/etc/nsswitch.conf
it should say something like
hosts: files dns
and /etc/resolv.conf
it should say something like
domain foo.com
nameserver 123.11.1.1
nameserver 123.11.1.2
Where the first entry is the primary and so on.
Simply type nslookup and a hostname that is not in your host file but you know exists on the network and it should tell you the name as long as teh DNS is working and has an entry for it.
i.e
nslookup hosta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 01:04 AM
06-08-2000 01:04 AM
Re: Setting DNS on HP-UX 10.2
I got this behavior once. The reason was following: DNS did not resolve my IP address to my hostname (I stole an IP address :-(
Thus check following: log in with non-graphical session (or use another system) and run "nslookup xx.xx.xx.xx", where xx.xx.xx.xx is your IP address. Compare it with your hostname (the one in /etc/rc.config.d/netconf, as well as the one in /etc/hosts - they should be the same).
If they are not identical, here is the solution. Either fix your DNS server (best solution !), or change your system name (use SAM or set_parms). Be careful about the latter one, it may be impossible, depending on software already on your system. If you cannot do either, just modify your /etc/nsswitch.conf file for the hosts line to look similar to "hosts: file [NOTFOUND=CONTINUE] dns".
Hope it helps,
Emmanuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 09:49 AM
06-08-2000 09:49 AM
Re: Setting DNS on HP-UX 10.2
Heres what I've found so far.
nslookup
no response from the server
nslookup
returned my host name and adress, the diferance being that the hostname was longer
I changed my host name to match what the server was showing and rebooted
upon trying to log-in now the cde will hang with an error message(sorry didn't write it down). I need to perform a cntrl/shift/break to get out of it.
I tried nslookup -swdebug
recieved the message PARSE SUCCESSFULL
I tried nslookup
>policy
recieved
#lookups=3
dns [RRCR] nis [RRCR] files [RRRR]
I checked my /etc/resolv.conf file. I did have it saying
search
nameserver
nameserver
I changed the statement search
domain
tried to login again after a reboot and recieved the same error message/hang.
I checked the /etc/nsswitch.conf and this is what was set in there:
hosts: dns [ NOT FOUND=return UNAVAIL=continue TRY AGAIN=return]
nis [ NOT FOUND=return UNAVAIL=continue TRY AGAIN=return]
files [ NOT FOUND=return UNAVAIL=continue TRY AGAIN=return]
protocols: NIS [ NOT FOUND=return UNAVAIL=continue] files
services: NIS [ NOT FOUND=return UNAVAIL=continue] files
networks: NIS [ NOT FOUND=return UNAVAIL=continue] files
netgroup: NIS [ NOT FOUND=return UNAVAIL=continue] files
rpc: NIS [ NOT FOUND=return UNAVAIL=continue] files
I checked my /etc/rc.config.d/netconf file noticed that the ROUTE_GATEWAY
statement said:
ROUTE_GATEWAY [0] = "gateway_address in name format"
changed to read the name as an decimal address instead.
Tried to reboot and login again and recieved the same error message/hang again.
I did put a call in to the server administrator to change the hostname for me to reflect only 8 characters only vice "9 characters.7 characters.4 characters.4 characters.3 characters" this was because set_parms stated uname only allows 8 to be read.
so here I sit now. If anybody has anything else I can try I would appreciate it.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 10:11 AM
06-08-2000 10:11 AM
Re: Setting DNS on HP-UX 10.2
The simplest way out of this is to put your workstation in the /etc/hosts file, until DNS is fixed.
After you enter the info for your workstation, then you need to edit /etc/nsswitch.conf and verify that the hosts line starts with file dns nis (if you use nis - I personally would not).
When the Name Server can correctly resolve your IP Address to Name relationship, then your problem will be resolved and you can change the hosts: line back to dns file.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2000 04:59 PM
06-08-2000 04:59 PM