ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] dnsmasq, dhcpd.leases and FQDN trouble
@ 2005-02-24  7:54 Maxim.Savrilov
  0 siblings, 0 replies; only message in thread
From: Maxim.Savrilov @ 2005-02-24  7:54 UTC (permalink / raw)
  To: community

Здравствуйте!

Вопрос такой про dnsmasq (dnsmasq-2.20-alt1)
стоит он в связке с dhcpd (dhcp-server-3.0.1-alt11) и оттуда берет инфу об именах машин.
плюс к этому несколько имен прописаны в /etc/hosts

Система у меня М24, а dnsmasq из сизифа (кстати, многое в конфиге руками пришлось править, из коробки он ничего не ресолвит)

так вот например в hosts прописано
192.168.0.49    wine.soc.ru

говорю
$ host wine
wine.soc.ru has address 192.168.0.49
$ host wine.soc.ru
wine.soc.ru has address 192.168.0.49

отлично
теперь смотрим что у нас dhcpd.leases

lease 192.168.0.223 {                                                                             
  starts 4 2005/02/24 02:52:22;                                                                   
  ends 4 2005/02/24 14:52:22;                                                                     
  binding state active;                                                                           
  next binding state free;                                                                        
  hardware ethernet xxxxxxxxxxx;                                                            
  uid "\001\000P\004\351\232\332";                                                                
  client-hostname "irina";                                                                        
}                                                                                                 

$ host irina
irina has address 192.168.0.223
$ host irina.soc.ru
Host irina.soc.ru not found: 3(NXDOMAIN)

при этом в логах
Feb 24 13:45:26 localhost dnsmasq[965]: query wine.soc.ru[A] from 127.0.0.1                       
Feb 24 13:45:26 localhost dnsmasq[965]: /etc/hosts wine.soc.ru is 192.168.0.49                    
Feb 24 13:45:29 localhost dnsmasq[965]: query wine.soc.ru[A] from 127.0.0.1                       
Feb 24 13:45:29 localhost dnsmasq[965]: /etc/hosts wine.soc.ru is 192.168.0.49                    
Feb 24 13:47:12 localhost dnsmasq[965]: query irina.soc.ru[A] from 127.0.0.1                      
Feb 24 13:47:12 localhost dnsmasq[965]: config irina.soc.ru is <NXDOMAIN>-IPv4                    
Feb 24 13:47:12 localhost dnsmasq[965]: query irina[A] from 127.0.0.1                             
Feb 24 13:47:12 localhost dnsmasq[965]: DHCP irina is 192.168.0.223                               
Feb 24 13:47:15 localhost dnsmasq[965]: query irina.soc.ru[A] from 127.0.0.1                      
Feb 24 13:47:15 localhost dnsmasq[965]: config irina.soc.ru is <NXDOMAIN>-IPv4                    

DOMAINNAME прописан в soc.ru

в /etc/resolv.conf
search soc.ru



почему dnsmasq так реагирует? куда копать? может dhcpd надо как-то настроить, чтобы он полное имя в leases писал, а как?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-24  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24  7:54 [Comm] dnsmasq, dhcpd.leases and FQDN trouble Maxim.Savrilov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git