Monday Jul 13, 2009

Zones and DNS

If you've preconfigured your zone as I did, you will probably be frustrated that there's no DNS. This is easy enough to fix.

[Read More]

Thursday Aug 28, 2008

Beyond DHCP with DNS and Routing in OpenSolaris

I've finally had time to install OpenSolaris on bare metal.  Previously I've installed it under VirtualBox on my Mac and Linux machines.  The networking configuration really had me pulling out my hair.  If you knew me, you'd know I don't have much hair so this means I was really desperate.   Here's some helpful pointers to get started with networking beyond the default DHCP settings for DNS hostname resolution and routing.[Read More]

Thursday Aug 14, 2008

Search Domains

Here at Sun I get a lot of e-mails with links containing abbreviated domain names to Sun intranet sites. For example:

http://sunweb.central

Which is intended to mean:

http://sunweb.central.sun.com

However, my browser tries to resolve it as:

http://www.sunweb.central

Which of course fails.

The solution is to simply add the following line to /etc/resolv.conf:

search sun.com 

Monday Aug 11, 2008

Local Hostname Resolution

OpenSolaris only allows me to ping machines in my local network by IP address:

bleonard@opensolaris:/etc$ ping 10.0.1.200
10.0.1.200 is alive
bleonard@opensolaris:/etc$ ping -s integrity.local
ping: unknown host integrity.local
bleonard@opensolaris:/etc$ 
While doing some digging I found the Service Discovery project, which uses Multicast DNS (mDNS) to locate services on the network. mDNS is managed by SMF and disabled by default. To use it, first copy the /etc/nsswitch.dns file to /etc/nsswitch.conf:
cd /etc 
pfexec cp nsswitch.conf nsswitch.conf.orig
pfexec cp nsswitch.dns nsswitch.conf

Then enable the mDNS service:

svcadm enable /network/dns/multicast

Now the hostnames on your local network are properly resolved:

bleonard@opensolaris:/etc$ ping -s integrity.local
PING integrity.local: 56 data bytes
64 bytes from 10.0.1.200: icmp_seq=0. time=1.011 ms
64 bytes from 10.0.1.200: icmp_seq=1. time=1.009 ms
64 bytes from 10.0.1.200: icmp_seq=2. time=0.939 ms
64 bytes from 10.0.1.200: icmp_seq=3. time=0.985 ms
\^C
----integrity.local PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms)  min/avg/max/stddev = 0.939/0.986/1.011/0.033
bleonard@opensolaris:/etc$

This is great because the IP addresses are assigned by DHCP, so I no longer have to keep track of changing IP addresses.

About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20
21
22
23
24
25
26
27
28
29
30
   
       
Today