Avahi has a problem with bind9 db.local-file and the localzone in named.conf

2009-11-15 Thread Erik Grootjans

I reported this bug at bugs.debian.org -- with the solution.
Maybe for someone who has the same problem

Greetings

Erik

- Original Message - 
From: Erik Grootjans

To: sub...@bugs.debian.org
Sent: Sunday, November 15, 2009 8:47 PM
Subject: Avahi has a problem with bind9 db.local-file and the localzone in 
named.conf



Package: Bind9
Version: 1:9.5.1.dfsg.P3-1

I have made a default installation of bind and are using it for resolving my 
networknames.


Everytime i started a fresh installed computer, i did get an icon with : 
avahi is disabled because your using a .local network
I did. So I did re-install a few computers, and on the other computers i 
changed /etc/hosts /etc/resolv.conf and /etc/network/interfaces. Futher i 
looked at al configuration programs for .local.

I checked this 3 times.
With the dns server off -- i had no messages from avahi.
but with the dns server on -- i got the messages and the disabling of avahi

I did a test (found it on avahi.org):

host -t SOA local.

and did get the next answer:
local has SOA record localhost. root.localhost 2604800 86400 2419200
604800.
I did recognize this as the db.local file from bind9
which is used to define localhost

I did a rename from db.local to db.localhost and changed
in named.conf zone local to zone localhost and db.local in db.localhost


I did again:

host -t SOA local.

and did get the next respons:
host local. not found (3NXDOMAIN)
-- so avahi will NOT disable itsself... (hallelujah!!!)

I waited by the computer after a restart. And saw avahi come on, but didnot 
get any messages off disabeling avahi.

I looked at the logs nothing. So this is a solution.

Why is this is this a bug 
Is there a way to get bind9 and avahi work together, using the default
installation names/files. This are default packages!!!
Why do i have to change db.local in db.localhost

There is something NOT compatable with the names of the files in the 
pacakages !!!


But it works now 



I'm using debian 5.00 with the latest versionss
of avahi 0.6.23
of bind 1:9.5.1.dfsg.P3-1




- Original Message - 
From: Avahi trac-nore...@tango.0pointer.de

Cc: avahi-tick...@mail.0pointer.de
Sent: Sunday, November 15, 2009 5:23 PM
Subject: Re: [Avahi] #291: Avahi has a problem with bind9 db.local-file and 
the localzone in named.conf




#291: Avahi has a problem with bind9 db.local-file and the localzone in
named.conf
-+--
 Reporter:  Erik|   Owner:  lennart
 Type:  defect  |  Status:  closed
Milestone:  |   Component:  avahi-core
Resolution:  distrospecific  |Keywords:
-+--
Changes (by lennart):

 * status:  new = closed
 * resolution:  = distrospecific


Comment:

That script which checks for the .local SOA is a downstream addition of
Debian's, which I however think makes a lot of sense. Nonetheless please
bring this up downstream, i.e. in the Debian BTS, since it is a downstream
bug.

If you ask me shipping a db.local in bind9 is really a bda idea.

--
Ticket URL: http://avahi.org/ticket/291#comment:1
Avahi http://avahi.org/
The Avahi mDNS/DNS-SD Engine


===
#291: Avahi has a problem with bind9 db.local-file and the localzone in
named.conf
+---
Reporter:  Erik|   Owner:  lennart
Type:  defect  |  Status:  new
Milestone:  |   Component:  avahi-core
Keywords:  |
+---
I did use a .local network
I did 3 client re-installs of the debian system
on 2 other systems i changed /etc/hosts /etc/resolv.conf
/etc/network/interfaces
At the last 2 systems i looked at al the conf files from later installed
packages, if there was a reference to my old domainname.
(I looked in sendmail, bind, apache, ftp,hylafax and dhcp3 and found
several and corrected them)
I did not look once but even tree times

Some times at startup i did get an error from the avahi-daemon.
Sometimes the avahi warning icon.

I looked at your website and found
a script with a test.
I did the test:

host -t SOA local.

and did get the next answer:
local has SOA record localhost. root.localhost 2604800 86400 2419200
604800.
I did recognize this as the db.local file from bind9
which is used to define localhost

I did a rename from db.local to db.localhost and changed
in named.conf zone local to zone localhost and db.local in db.localhost


I did again:

host -t SOA local.

and did get the next respons:
host local. not found (3NXDOMAIN)
-- so avahi will NOT disable itsself... (hallelujah!!!)


Why is this is this a bug 
Is there a way to get bind9 and avahi work together, using the default
installation names/files.
Why do i have to change db.local in db.localhost

I'm using debian 5.00 with avahi 0.6.23

--
Ticket URL: http

Fw: Solved: ? Re: How to change the domainname ????

2009-11-10 Thread Erik Grootjans


- Original Message - 
From: Erik Grootjans edgrootj...@versatel.nl

To: Tom H tomh0...@gmail.com
Sent: Tuesday, November 10, 2009 1:22 PM
Subject: Solved: ? Re: How to change the domainname 



Tom,

After your reply, i did look some deeper in the avahi-documentation and 
came acros the following tekst:

http://avahi.org/wiki/AvahiAndUnicastDotLocal

It seems that avahi uses the .local and with the implamentation of avahi 
on the system, there are some problems using a the .local domain and 
avahi.

It is advised NOT to use the .local domain and avahi.
So the remark in syslog is only a mark of binding the hostname to .local 
for avahi and not the REAL FQDN.


So it should not give any problem to use the thuis.local domain and avahi.

I guess problem solved

Erik


Avahi and Unicast Domains .localĀ¶
mDNS/DNS-SD is inherently incompatible with unicast DNS zones .local. We 
strongly recommend not to use Avahi or nss-mdns in such a network setup. 
N.B.: nss-mdns is not typically bundled with Avahi and requires a separate 
download and install.
Background: The Zeroconf protocols Avahi implements are known as mDNS and 
DNS-SD. mDNS (short for Multicast DNS) is based on traditional (unicast) 
DNS, but the two systems do not interact. mDNS is used to manage a special 
cooperative zone .local where all local mDNS servers can freely register 
host names or services. Before mDNS was introduced the domain .local was 
sometimes used in non-public (unicast) DNS servers to assign names in 
LANs. Unfortunately some networks still use this domain that way. If Avahi 
and nss-mdns is installed properly a machine does not contact a unicast 
DNS server when resolving names from the .local domain, thus the unicast 
DNS domain .local becomes unreachable.
If you come across a network where .local is a unicast DNS domain, please 
contact the local administrator and ask him to move his DNS zone to a 
different domain. If this is not possible, we recommend not to use Avahi 
in such a network at all.




- Original Message - 
From: Tom H tomh0...@gmail.com

To: debian-user@lists.debian.org
Sent: Monday, November 09, 2009 3:20 PM
Subject: Re: How to change the domainname 



I have a laptop, with a fixed ip-address, and i want to change its
domainname. The current domainname is: local.
So i did a compleet NEW installation of Debian 5.0 and formatted the 
file

system during installation. I did give the new domainname: thuis.local.



If i look at the /etc/host file, i see:
127.0.0.1 localhost
192.168.0.10 debian.thuis.local debian
I THINK, THIS IS AS SHOULD BE



If I look in /etc/resolv.conf.I see:
search thuis.local
nameserver 192.168.0.x
nameserver 192.168.0.y
I THINK, THIS IS AS SHOUL:D BE



If I look in /etc/network/interfaces. I see:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.z
dns-nameservers 192.168.0.x 192.168.0.y
dns-search thuis.local
I THINK, THIS IS AS SHOULD BE.



If i look in the /var/log/syslogfile, i see:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host
name
is debian.local local service cookie is 3066543992.



Why is at startup the name debian.local ???
I have asked to give the hostname debian and the domainname thuis.local.
And more important how can i change it


127.0.0.1 localhost.thuis.local localhost
127.0.0.1 debian.thuis.local debian # may not be necessary


Hi Tom,

I did the things you said, but unfortunatelly, it maded no change.

Thanks

I have changed the line in /etc/host
from 127.0.0.1 localhost into 127.0.0.1 localhost.localdomain 
localhost --

this makes no difference for the syslog file: the hostname there is still
debian.local


I added 127.0.0.1.debian.thuis.local debian -- I get no change. And 
because

i have seen in other logfiles, that this could give some messages with
binding the name to the ip-address, I commeted it out again.

There is no change in the line:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host 
name
is debian.local local service cookie is 3066543992. Only the cookie 
number

is different..


I saw an email today suggesting to use the FQDN in /etc/hostname so
you could try that (although I personally have only ever used the
regular hostname there).

After emailing you, the .local suffix rang a bell and looking at your
emails now confirms it. .local is an avahi-specific suffix and your
log message comes from avahi-daemon. There is a setting (through the
hosts line in /etc/nsswitch.conf, I think, although it does not make
sense offhand) which instructs avahi not to append .local when you are
using .local as a unicast domain.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact 
listmas...@lists.debian.org 



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas

Re: How to change the domainname ????

2009-11-09 Thread Erik Grootjans

Thanks you, but this is not the answer to my question.
I did a compleet new install and marked don't keep data in the options of 
the diskpartitioner.

I did give the hostname debian
and the domainname thuis.local
( I did a new installation because, some programs copy the domainname and 
hostname into there configurationfile at installation. If you want to change 
them, you have also to change them in the configfiles and i don't know which 
programs that do and which not. So to be on the save side i did a new 
installation!!!)


So why is in syslog the name debian.local 


I have read the manpage hostname

I did:
#hostname
debian
#dnsdomainname
thuis.local
#hostname --fqdn
debian.thuis.local

This looks ok.

But why is there in syslog:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host name 
is debian.local local service cookie is 3066543992


Thanks Erik

- Original Message - 
From: Wayne linux...@gmail.com

To: debian-user@lists.debian.org
Sent: Monday, November 09, 2009 12:24 AM
Subject: Re: How to change the domainname 



Erik Grootjans wrote:

Hi,

I have a laptop, with a fixed ip-address, and i want to change its 
domainname. The current domainname is: local.
So i did a compleet NEW installation of Debian 5.0 and formatted the file 
system during installation. I did give the new domainname: thuis.local.


If i look at the /etc/host file, i see:
127.0.0.1   localhost
192.168.0.10debian.thuis.local debian
I THINK, THIS IS AS SHOULD BE

If I look in /etc/resolv.conf.I see:
search thuis.local
nameserver 192.168.0.x
nameserver 192.168.0.y
I THINK, THIS IS AS SHOUL:D BE

If I look in /etc/network/interfaces. I see:
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.z
dns-nameservers 192.168.0.x 192.168.0.y
dns-search thuis.local
I THINK, THIS IS AS SHOULD BE.

If i look in the /var/log/syslogfile, i see:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host 
name is debian.local local service cookie is 3066543992.


Why is at startup the name debian.local ???
I have asked to give the hostname debian and the domainname thuis.local.

Why.
And more important how can i change it


Read the hostname man page.  It tells you how to change it and the domain 
name.


Wayne


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a 
subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: How to change the domainname ????

2009-11-09 Thread Erik Grootjans


- Original Message - 
From: Tom H tomh0...@gmail.com

To: debian-user@lists.debian.org
Sent: Sunday, November 08, 2009 10:28 PM
Subject: Re: How to change the domainname 



I have a laptop, with a fixed ip-address, and i want to change its
domainname. The current domainname is: local.
So i did a compleet NEW installation of Debian 5.0 and formatted the file
system during installation. I did give the new domainname: thuis.local.



If i look at the /etc/host file, i see:
127.0.0.1 localhost
192.168.0.10 debian.thuis.local debian
I THINK, THIS IS AS SHOULD BE



If I look in /etc/resolv.conf.I see:
search thuis.local
nameserver 192.168.0.x
nameserver 192.168.0.y
I THINK, THIS IS AS SHOUL:D BE



If I look in /etc/network/interfaces. I see:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.z
dns-nameservers 192.168.0.x 192.168.0.y
dns-search thuis.local
I THINK, THIS IS AS SHOULD BE.



If i look in the /var/log/syslogfile, i see:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host 
name

is debian.local local service cookie is 3066543992.



Why is at startup the name debian.local ???
I have asked to give the hostname debian and the domainname thuis.local.
And more important how can i change it


127.0.0.1 localhost.thuis.local localhost
127.0.0.1 debian.thuis.local debian   # may not be necessary


Hi Tom,

I did the things you said, but unfortunatelly, it maded no change.

Thanks

I have changed the line in /etc/host
from 127.0.0.1 localhost into 127.0.0.1 localhost.localdomain localhost -- 
this makes no difference for the syslog file: the hostname there is still 
debian.local



I added 127.0.0.1.debian.thuis.local debian -- I get no change. And 
because i have seen in other logfiles, that this could give some messages 
with binding the name to the ip-address, I commeted it out again.


There is no change in the line:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host name 
is debian.local local service cookie is 3066543992. Only the cookie number 
is different..




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact 
listmas...@lists.debian.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: How to change the domainname ????

2009-11-09 Thread Erik Grootjans


I have added the line:
send host-name MyComputerName.MyDomain;
to /etc/dhcp3/dhclient.conf

I have looked in the syslog again and i get the same message;
avahi-deamon {2452]: Server start up complete. Hostname is debian.local 
local service cookie is xx


So this is not the sollution
Do you have another idea

Thanks

Erik


- Original Message - 
From: Klistvud quotati...@aliceadsl.fr

To: debian-user@lists.debian.org
Sent: Sunday, November 08, 2009 8:56 PM
Subject: Re: How to change the domainname 


Dne, 08. 11. 2009 20:34:57 je Erik Grootjans napisal(a):



Why is at startup the name debian.local ???
I have asked to give the hostname debian and the domainname
thuis.local.

Why.
And more important how can i change it



I have a desktop with a static address too; when trying to get its
name.domain shown in my router's configuration page, though, the only
thing that helped was to put this line:

send host-name MyComputerName.MyDomain;

into /etc/dhcp3/dhclient.conf. *Although* it's not configured as a DHCP
client. Go figure ...
As to your first question, I can only try a wild guess: maybe it's
because you don't have an actual domain server and an actual domain?

--
Regards,

Klistvud
Certifiable Loonix User #481801
http://bufferoverflow.tiddlyspot.com


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact 
listmas...@lists.debian.org



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




How to change the domainname ????

2009-11-08 Thread Erik Grootjans

Hi,

I have a laptop, with a fixed ip-address, and i want to change its 
domainname. The current domainname is: local.
So i did a compleet NEW installation of Debian 5.0 and formatted the file 
system during installation. I did give the new domainname: thuis.local.


If i look at the /etc/host file, i see:
127.0.0.1   localhost
192.168.0.10debian.thuis.local debian
I THINK, THIS IS AS SHOULD BE

If I look in /etc/resolv.conf.I see:
search thuis.local
nameserver 192.168.0.x
nameserver 192.168.0.y
I THINK, THIS IS AS SHOUL:D BE

If I look in /etc/network/interfaces. I see:
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.z
dns-nameservers 192.168.0.x 192.168.0.y
dns-search thuis.local
I THINK, THIS IS AS SHOULD BE.

If i look in the /var/log/syslogfile, i see:
Nov 8 20:14:11 debian avahi-deamon[2464]: Server startup complete. Host name 
is debian.local local service cookie is 3066543992.


Why is at startup the name debian.local ???
I have asked to give the hostname debian and the domainname thuis.local.

Why.
And more important how can i change it



Thanks 



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Samba --- Can't see files in konqueror or nautulus

2009-11-03 Thread Erik Grootjans

Hi,

I have update my samba server with the latest version 3.2.5 on Debian - 
lenny and i have a problem.


I can see the shares (including the Samba shares)  from an XP workstation.
I can't see any shares on my Linux Debian Box.
I have tryed Konquerer and Nautilus.
I do as a normal user : - Network servers - I get Windows network and then 
an empty screen


If i do it with smbmount - i can mount the drives:
#! /bin/bash
echo  

mount -t smbfs -o password= //Enterprise/Fotos /var/mnt2
cp -rv /var/mnt2/* /var/Fotos


this works !



But if i do a smbtree -b

I get nothing



Can anybody tell me what is changed in samba so the Workgroup is not 
visuabel from a Linux system, but is still visual from a XP-computer!






PS I have done a clean install of Debian Lenny to my laptop.

Including Samba. And the same problem overthere nothing in Nautulus.







When I use SMB4K I get nothing at first

If i search on a hostname

The hostname is found, and i can browse it under the tab network

So its possible to connect but why can i not see it under Samba



Please some help.



Thanks



Erik














--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org