Computing.Net > Forums > Solaris > Domain Name & hostname unknown

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Domain Name & hostname unknown

Reply to Message Icon

Name: BigLou
Date: March 5, 2002 at 20:01:02 Pacific
Comment:

Hi all, please help me.
I have utra sprac5 running solaris8. Just got things going with my linksys router, cable modem (optimunm online) and my pent 4 machine. I using DHCP to get my ip from router, but I can't get it to give me a hostname or Domain. Where do I add these things so that DHCP doesn't step on it?



Sponsored Link
Ads by Google

Response Number 1
Name: Jim
Date: March 6, 2002 at 14:00:32 Pacific
Reply:

Hi BigLou,
I am not sure I can help, but I have optimum online too. you have to create the file using touch
touch /etc/resolve.conf
Then open that file and put in

domain mydomain.com
nameserver 167.206.112.3
nameserver 167.206.112.4

These are the dns's for optimum online.
there is a file called
/etc/hostname.xxxxx

where xxxxx is your network card. You can find that by using
ifconfig -a
and it would be the second entry (mine is elbc0 and it is a 3com card.
Inside /etc/hostname.xxxxx is the name you gave your computer, it is what it says on the login screen. Mine is Mynec. That file should be there already if you entered the network info when you installed the OS

Like I said, I'm not sure, I use a hub and I don't use DCHP.

In the file
/etc/nsswitch.conf
there is a line that says
hosts: files
and edit it to say
hosts: files dns
if it doesn't already.

Last,I bet that the ip of your router should
be in the file...use touch again to make a file.
touch /etc/defaultrouter

and put the ip of your router in there.

Now I could be totally wrong, this worked for me but I use internet connection sharing. But if anyone who knows what they are doing reads this, maybe they will correct me.

Once you have the dns right, if you run
nslookup
either you will read errors or you will get to a prompt
>
and that means dns is right I think.

Also try putting in an ip of a website in your browser.
64.58.76.229 is yahoo and see if it comes up. That means you are close and dns isn't working yet.

Good luck


0
Reply to Message Icon

Related Posts

See More


Recompile Solaris C apps ... ? NIS server config



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Domain Name & hostname unknown

Unqualified Domain Name www.computing.net/answers/solaris/unqualified-domain-name/1491.html

Unable to qualify own domain name www.computing.net/answers/solaris/unable-to-qualify-own-domain-name/3183.html

DHCP client & hostname www.computing.net/answers/solaris/dhcp-client-amp-hostname-/2453.html