[indiana-discuss] DNS problem in 2008.05 RC2

Vitaly Davidenko java at skypoint.ru
Thu May 1 15:59:51 PDT 2008


Dave Miner wrote:
> Vitaly Davidenko wrote:
>> Thanks, Steffen
>> DNS  works, it happens immediately after modification of the file 
>> /etc/ nsswitch.conf
>> It is magically that not need to restart any system service after  
>> modification of /etc file.
>>
>
> You should not need to modify /etc/nsswitch.conf by hand if your DHCP 
> server supplied DNS parameters and NWAM is operating correctly. 
> However, many of us periodically see NWAM fail to properly update 
> nsswitch.conf, there are several bugs already filed in bugzilla about 
> this.  I continue to hope that someone from the NWAM team will pick it 
> up and investigate...
>
> Dave
>
>> Thanks,
>> Vitaly
>>
>>
>>
>> On 02.05.2008, at 0:46, Steffen Weiberle wrote:
>>
>>> Vitaly wrote:
>>>> [i]
>>>> Oops... Registration on this site does not allow to post email  
>>>> messages to indiana-discuss mail list without subscription, i have  
>>>> subscribed yet, but my previous replies still blocked.
>>>> [/i]
>>>> The problem has not resolved after restarting of name-service-cache.
>>>> Here is /etc/nsswitch.conf from my system:
>>>> # CDDL HEADER START
>>>> #
>>>> # The contents of this file are subject to the terms of the
>>>> # Common Development and Distribution License (the "License").
>>>> # You may not use this file except in compliance with the License.
>>>> #
>>>> # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
>>>> # or http://www.opensolaris.org/os/licensing.
>>>> # See the License for the specific language governing permissions
>>>> # and limitations under the License.
>>>> #
>>>> # When distributing Covered Code, include this CDDL HEADER in each
>>>> # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
>>>> # If applicable, add the following below this CDDL HEADER, with the
>>>> # fields enclosed by brackets "[]" replaced with your own identifying
>>>> # information: Portions Copyright [yyyy] [name of copyright owner]
>>>> #
>>>> # CDDL HEADER END
>>>> #
>>>> # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
>>>> # Use is subject to license terms.
>>>> #
>>>> # ident    "@(#)nsswitch.files    1.16    06/03/24 SMI"
>>>> #
>>>> # /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
>>> add dns temporarily to get DNS to be used as well
>>>
>>> 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
>>>> printers:    user files
>>>> auth_attr:  files
>>>> prof_attr:  files
>>>> project:    files
>>>> tnrhtp:     files
>>>> tnrhdb:     files
>>>> May be this information is helpful...
>>>> P.S. Excuse me for newbie question, how to watch system log  
>>>> messages? I found syslog file in /var/log, but it contains only  
>>>> messages from Sendmail:
>>>> vitaly at opensolaris:~# ls /var/log/
>>>> authlog  gdm  pool  postrun.log  sysidconfig.log  syslog  Xorg. 
>>>> 0.log  Xorg.0.log.old
>>>> vitaly at opensolaris:~# cat /var/log/syslog
>>>> May  1 12:22:46 opensolaris sendmail[927]: [ID 702911 
>>>> mail.warning]  gethostbyaddr(192.168.212.128) failed: 1
>>>> May  1 12:22:46 opensolaris sendmail[927]: [ID 702911 mail.notice]  
>>>> alias database /etc/mail/aliases rebuilt by root
>>>> May  1 12:22:46 opensolaris sendmail[927]: [ID 702911 mail.info] / 
>>>> etc/mail/aliases: 12 aliases, longest 10 bytes, 138 bytes total
>>>> May  1 12:22:46 opensolaris sendmail[934]: [ID 702911 
>>>> mail.warning]  gethostbyaddr(192.168.212.128) failed: 1
>>>> May  1 12:22:46 opensolaris sendmail[940]: [ID 702911 mail.info]  
>>>> starting daemon (8.14.2+Sun): SMTP+queueing at 00:15:00
>>>> May  1 12:22:47 opensolaris sendmail[948]: [ID 702911 mail.info]  
>>>> starting daemon (8.14.2+Sun): queueing at 00:15:00
>>>> Thanks,
>>>> Vitaly
>>>> -- 
>>>> This message posted from opensolaris.org
>>>> _______________________________________________
>>>> indiana-discuss mailing list
>>>> indiana-discuss at opensolaris.org
>>>> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>>
>> _______________________________________________
>> indiana-discuss mailing list
>> indiana-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
Dump of communication between my OpenSolaris host (192.168.212.128) and 
VMWare DHCP server is attached.
Network traffic was monitored after restarting  the service 
"svc:/network/physical:nwam"

#snoop -o dhcp.snoof udp port 67 or udp port 68
#svcadm restart svc:/network/physical:nwam
#snoop -i dhcp.snoof -V

  1   0.00000 192.168.212.128 -> 192.168.212.254 ETHER Type=0800 (IP), 
size=342 bytes
  1   0.00000 192.168.212.128 -> 192.168.212.254 IP  D=192.168.212.254 
S=192.168.212.128 LEN=328, ID=9457, TOS=0x0, TTL=255
  1   0.00000 192.168.212.128 -> 192.168.212.254 UDP D=67 S=68 LEN=308
  1   0.00000 192.168.212.128 -> 192.168.212.254 DHCP/BOOTP DHCPRELEASE
________________________________
  2   2.15431 OLD-BROADCAST -> BROADCAST    ETHER Type=0800 (IP), 
size=342 bytes
  2   2.15431 OLD-BROADCAST -> BROADCAST    IP  D=255.255.255.255 
S=0.0.0.0 LEN=328, ID=10897, TOS=0x0, TTL=255
  2   2.15431 OLD-BROADCAST -> BROADCAST    UDP D=67 S=68 LEN=308
  2   2.15431 OLD-BROADCAST -> BROADCAST    DHCP/BOOTP DHCPDISCOVER
________________________________
  3   1.00121 192.168.212.254 -> 192.168.212.128 ETHER Type=0800 (IP), 
size=342 bytes
  3   1.00121 192.168.212.254 -> 192.168.212.128 IP  D=192.168.212.128 
S=192.168.212.254 LEN=328, ID=0, TOS=0x10, TTL=16
  3   1.00121 192.168.212.254 -> 192.168.212.128 UDP D=68 S=67 LEN=308
  3   1.00121 192.168.212.254 -> 192.168.212.128 DHCP/BOOTP DHCPOFFER
________________________________
  4   1.99878 OLD-BROADCAST -> BROADCAST    ETHER Type=0800 (IP), 
size=342 bytes
  4   1.99878 OLD-BROADCAST -> BROADCAST    IP  D=255.255.255.255 
S=0.0.0.0 LEN=328, ID=10898, TOS=0x0, TTL=255
  4   1.99878 OLD-BROADCAST -> BROADCAST    UDP D=67 S=68 LEN=308
  4   1.99878 OLD-BROADCAST -> BROADCAST    DHCP/BOOTP DHCPREQUEST
________________________________
  5   0.00105 192.168.212.254 -> 192.168.212.128 ETHER Type=0800 (IP), 
size=342 bytes
  5   0.00105 192.168.212.254 -> 192.168.212.128 IP  D=192.168.212.128 
S=192.168.212.254 LEN=328, ID=0, TOS=0x10, TTL=16
  5   0.00105 192.168.212.254 -> 192.168.212.128 UDP D=68 S=67 LEN=308
  5   0.00105 192.168.212.254 -> 192.168.212.128 DHCP/BOOTP DHCPACK

If there is a bug, i hope that attached log will be helpful for the NWAM 
team.

After restarting of the service the file "/etc/nsswitch.conf¨ has not 
been altered and DNS works  perfectly for all applications.

Thanks,
Vitaly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/indiana-discuss/attachments/20080502/9ebb181e/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcp.snoof
Type: application/octet-stream
Size: 1856 bytes
Desc: not available
Url : http://mail.opensolaris.org/pipermail/indiana-discuss/attachments/20080502/9ebb181e/attachment.obj 


More information about the indiana-discuss mailing list