[OmniOS-discuss] dhcp client and DNS

Ludovic Orban lorban at bitronix.be
Wed Nov 28 07:50:52 EST 2012


Hi,

I've configured my ethernet interface with dhcp the following way:

ipadm create-addr -T dhcp rge0/v4

and that works fine except for two things:

1) DNS names resolving wasn't working. I've had to manually copy
/etc/nsswitch.dns to /etc/nsswitch.conf and manually create a
/etc/dhcp/eventhook script (much like described there:
https://blogs.oracle.com/darren/entry/dhcp_eventhook) to make DNS name
resolution working. Is that expected or is there a simpler way to
accomplish the same thing that I may have overlooked?

2) I want to "publish" my server's name to the DNS via the DHCP server. I
couldn't find a way to do it using ipadm so I reverted to using the old
Solaris 8 way, meaning I created an empty /etc/dhcp.rge0 file and a
/etc/hostname.rge0 file containing this single line: "inet
myWonderfulHostname". This all works fine except that once again I wonder
if there is a way to do the same with ipadm or some other newstyle tool.
While everything works fine, it looks like this setup confuses ipadm a bit
as it now sees two rge0 interfaces:

# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
rge0/?            dhcp     ok           192.168.2.130/24
lo0/v6            static   ok           ::1/128
rge0/v4           dhcp     disabled     ?
#

I just wonder if there is a cleaner way to setup dhcp or if this is a
current limitation. In the latter case, is that a known problem being
worked on?


Thanks for your help,
Ludovic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20121128/e30d5b43/attachment.html>


More information about the OmniOS-discuss mailing list