Thor

Useful thing to know about with likewise-open5 on Ubuntu 12.10


I spent some time wondering why I couldn’t join my webfront to my windows ad…
Among others I got

Error: DNS_ERROR_BAD_PACKET

and

lsass error network name not found

Turns out that if you got multiple interfaces like this:

# The primary network interface  
auto eth1  
iface eth1 inet static  
address 192.168.0.60  
netmast 255.255.0.0  
network 192.168.0.1  
broadcast 192.168.255.255  
gateway 192.168.0.1  
dns-search otc.local  
dns-nameservers 192.168.0.5

auto eth0  
iface eth0 inet static  
address xxx.xxx.xxx.xxx  
netmask 255.255.255.0  
network xxx.xxx.xxx.xxx  
broadcast xxx.xxx.xxx.xxx

You need to add the dns-search and dns-nameservers options to the last block for the ifaces, else it will not be able to resolve the domain, in this case otc.local

The config should look like this:

# The primary network interface  
auto eth1  
iface eth1 inet static  
address 192.168.0.60  
netmast 255.255.0.0  
network 192.168.0.1  
broadcast 192.168.255.255  
gateway 192.168.0.1  
dns-search otc.local  
dns-nameservers 192.168.0.5

auto eth0  
iface eth0 inet static  
address xxx.xxx.xxx.xxx  
netmask 255.255.255.0  
network xxx.xxx.xxx.xxx  
broadcast xxx.xxx.xxx.xxx  
dns-search otc.local  
dns-nameservers 192.168.0.5