Hi,<br><br>I've configured my ethernet interface with dhcp the following way: <br><br>ipadm create-addr -T dhcp rge0/v4<br><br>and that works fine except for two things:<br><br>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: <a href="https://blogs.oracle.com/darren/entry/dhcp_eventhook">https://blogs.oracle.com/darren/entry/dhcp_eventhook</a>) 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?<br>
<br>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:<br>
<br># ipadm show-addr<br>ADDROBJ           TYPE     STATE        ADDR<br>lo0/v4            static   ok           <a href="http://127.0.0.1/8">127.0.0.1/8</a><br>rge0/?            dhcp     ok           <a href="http://192.168.2.130/24">192.168.2.130/24</a><br>
lo0/v6            static   ok           ::1/128<br>rge0/v4           dhcp     disabled     ?<br>#<br><br>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?<br>
<br><br>Thanks for your help,<br>Ludovic<br><br>