http://defect.opensolaris.org/bz/show_bug.cgi?id=5180


Andrew Watkins <andrew at dcs.bbk.ac.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew at dcs.bbk.ac.uk


--- Comment #3 from Andrew Watkins <andrew at dcs.bbk.ac.uk> 2010-02-11 
15:50:59 UTC ---
This is a problem we have in a Microsoft DHCP/DNS server setup. When nwam gets
an IP address the DHCP server does not register (get a) a hostname. So there is
no DNS hostname registered to the opensolaris machine.

# nslookup opensolaris1
** server can't find opensolaris1: SERVFAIL

There is a workaround by editing dhcpagent (CLIENT_ID and REQUEST_HOSTNAME),
create /etc/hostname.INTERFACE and restart physical:nwam network, but it would
be nice if an option can be added to nwam properties.

# cp /etc/default/dhcpagent  /etc/default/dhcpagent.orig

# sed -e s/#.*CLIENT_ID=/CLIENT_ID=opensolaris1/   \ 
  -e 's/#.*REQUEST_HOSTNAME=no/REQUEST_HOSTNAME=yes/' \
  /etc/default/dhcpagent.orig > /etc/default/dhcpagent

# diff /etc/default/dhcpagent  /etc/default/dhcpagent.orig
91c91
< CLIENT_ID=opensolaris1
---
> # CLIENT_ID=
104c104
< REQUEST_HOSTNAME=yes
---
> # REQUEST_HOSTNAME=no

# echo "inet opensolaris1" > /etc/hostname.igb0
# svcadm restart svc:/network/physical:nwam

#nslookup opensolaris1
Name:   opensolaris1.dcs.bbk.ac.uk
Address: xx.xx.xx.xx

It would be great if this could be done automatically!!

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to