Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » local dns resolver not work correct
  •  
valshare

Messages: 79
Karma: 0
Send a private message to this user
Hello,

i have a problem with with my kerio control and firmware 9.0.

if i do a DNS lookup from the kerio control and will search some local hostnames that are registered in the dhcp table some will found over the dns lookup, some not. The options for dns lookup is "Tool: dnslookup / Server: localhost / Type: any or a"

In DNS setup, i have enabled the option "dns forward" and "Local DNS Lookup -> DHCP Lease table"

Looks like a bug, or? Can anyone confirme it?

Debug for found host says

[12/Jan/2016 07:39:41] {dns} question: ALL, phone, id 46896
[12/Jan/2016 07:39:41] {dns} DnsResolver: from DHCP Lease Table: 10.255.250.10
[12/Jan/2016 07:39:41] {dns} DnsResolver: DNS name phone resolved from DHCP lease table as 10.255.250.10
[12/Jan/2016 07:39:41] {dns} reply: phone has 10.255.250.10



Debug for host not found says

[12/Jan/2016 07:42:55] {dns} question: A, macmini, id 46508
[12/Jan/2016 07:42:55] {dns} [ 364 ] Querying server 192.168.178.1, query macmini, type A, attempt 1
[12/Jan/2016 07:42:55] {proto_dns} DNS: query 192.168.178.2:53941 -> 192.168.178.1:53 for macmini
[12/Jan/2016 07:42:55] {dns} [ 364 ] Reply from 192.168.178.1
[12/Jan/2016 07:42:55] {dns} [ 364 ] Got answer from 192.168.178.1, host not found
[12/Jan/2016 07:42:55] {dns} forwarding reply to 127.0.0.1:33734 id 46508

  •  
valshare

Messages: 79
Karma: 0
Send a private message to this user
  •  
Petr Dobry (Kerio)

Messages: 782
Karma: 61
Send a private message to this user
You try to resolve hostnames without domain. From the second example it seems that DNS query is forwarded to another DNS server.

What domain you assign in DHCP to your hosts ?
What do you have in DNS settings "When resolving a DNS name from the hosts table or the lease table, combine it with the DNS domain below:"

Petr Dobry
Product Development Manager | Kerio
  •  
valshare

Messages: 79
Karma: 0
Send a private message to this user
i have no domain assignet in the DHCP settings.
In DNS settings i have "mynetwork.lan" to combine it.

I think, i found where the problem is.

I have a printer with dhcp-client option enabled. The printer has no entry in "hostname" but i have give it the name "printer" with dhcp option "12 Host Name"

If i make a nslookup or dig it didnĀ“t work. Same with devices where i have reserved a ip with the dhcp server but the devices are configured manual and has the dhcp client disabled.

Only if the client has enbaled the dhcp client and has registed at the dhcp server an get a valid lease that can resolve over nslookup or dig. I think this is a bug or i have configured something wrong! with other firewalls like pfsense that is not a problem if a devices is registed at the dhcp server.

I hope you can follow me Wink
  •  
Petr Dobry (Kerio)

Messages: 782
Karma: 61
Send a private message to this user
OK, it explains it now. It's not a bug. Resolving from DHCP leases works for addresses assigned from DHCP.

If you assign static IP address and make only a reservation in DHCP, it won't resolve. For static IP addresses you need to add hostnames into hosts file manually.

Petr Dobry
Product Development Manager | Kerio
  •  
valshare

Messages: 79
Karma: 0
Send a private message to this user
thanx for reply.

why not add an option for it on the dhcp server? In pfsense its easy and logical.

[Updated on: Wed, 20 January 2016 10:09]

Previous Topic: not logged in statics
Next Topic: MyKerio is down now ?
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Jul 22 04:50:47 CEST 2017

Total time taken to generate the page: 0.00393 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.