Need help configuring DNS/DHCP in Solaris-HELP!

milagro

Golden Member
Jun 19, 2001
1,459
0
0
Need help configuring DNS/DHCP with cable modem
I have two PCs: one Win2k and one Solaris8 x86.
They are connected to the router which in turn is connected to the cable modem. My ISP is roadrunner (hawaii.rr.com). My Windows PC has no problems connecting to the Internet. Because I'm using the router, my PCs IP adresses are 192.168.2.x where x was 28 on the winpc and 36 on the solaris pc when I last ran it on its windows partition. The router's IP is 192.168.2.1, but its external IP is assigned by my ISP.

So, when I try to go to the Web on the solaris box, it tells me that it has no info on requested host, i.e., it doesn't know where to go to the DNS server.

I'm attempting to correctly edit the nsswitch.conf, the resolv.conf, and the hosts files. Currently, they look like this:


# more hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.2.1 hostname domain hawaii.rr.com loghost

# more defaultrouter
192.168.0.1

# more resolv.conf
domain hawaii.rr.com

nameserver 192.168.2.1
nameserver 192.168.2.1

# more /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files dns
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files

auth_attr: files
prof_attr: files



So what am I doing wrong? Thanks in advance for the help
 

LNXman

Senior member
Jul 27, 2000
404
0
0
Hope this helps. . .

Let's assume:
your_solaris_box_name = "cougar"
your_internal_dns_domain_name = "milagro.com"
providers_primary_DNS_IP = "24.192.36.5" (e.g. ns1.rr.hawaii.com)
roviders_secondary_DNS_IP = "24.128.36.5" (e.g. ns2.rr.hawaii.com)

So then. . .

----------------------------------------------------------
#
# Internet host table
#
127.0.0.1 localhost
192.168.2.1 hostname domain hawaii.rr.com loghost ->This should be: 192.168.2.1 <your_solaris_box_name> <your_solaris_box_name>.<your_internal_dns_domain_name>

You may want to add your window box's I.P. and name also in case you want to access your windows machine from Solaris

----------------------------------------------------------
# defaultrouter
192.168.0.1 -> I am assuming this is just a router, and that it may even be servicing dhcp. . .

----------------------------------------------------------
# resolv.conf
domain hawaii.rr.com -> This should be: domain <your_internal_dns_domain_name>
And add: search <your_internal_dns_domain_name>

nameserver 192.168.2.1 -> This should be: nameserver <providers_primary_DNS_IP>
nameserver 192.168.2.1 -> This should be: nameserver <providers_secondary_DNS_IP>

----------------------------------------------------------
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files dns
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files

auth_attr: files
prof_attr: files

Now you just have to fill in your information, and substitute . You can look at your windows machine configuration to obtain most of the information you need, since you posted it had no problems. . .
Keep in mind this is not configuring DHCP, you have to configure a separate service for that . . . good luck.
 

milagro

Golden Member
Jun 19, 2001
1,459
0
0
Thanks a lot for the reply--I'll have to take a look at it when I get home. I'm still a little confused regarding the internal dns name (i.e. milagro.com). Sorry for the stupid question but I haven't purchased a domain name...can this just be whatever I want to call it or do I need to get the info from somewhere?

 

LNXman

Senior member
Jul 27, 2000
404
0
0
When you set up your Sun's network during installation, I am pretty sure you were asked to enter a machine name and a domain for the machine. This domain can be anything you want as long as you are using it within a private network (i.e. no one else will see it) AND you are not planning on making it public.
milagro.com is just a domain name I picked up for the previous post as an example, so don't panic . . . ;^)

In the event that you have chosen rr.hawaii.com as the domain for your Sun box, I would suggest to change it, since that is a public domain, and it's owned by Road Runner. Only use rr.hawaii.com for the connection given to you by Road Runner (i.e. your router).

Hope this small diagram helps . . .

INTERNET <---->[(ext. I.P.)your router(192.168.0.1)]<----->[(192.168.x.x)windows machine]
................................................................................................................|
................................................................................................................|---->[(192.168.x.x)Solaris machine]


|-----rr.hawaii.com AND other domains-----|--------------milagro.com-------------------|
|-------------publicly owned -----------|-------------private and yours-----------------|

NOTE: the '.' above are being used for indentation, since the editor does not have this feature.

On a side note, I would use the following I.P.'s for simplicity.
router's internal I.P. 192.168.2.1
Window's I.P. 192.168.2.x (x -> a number from 2 - 254)
Solaris' I.P. 192.168.2.x (x -> a number from 2 -254 excluding chosen number for Window's machine)

Hopes this clears it up a bit. . . late.