DNS Query issue

Started by Vilhonator, May 01, 2020, 09:40:46 AM

Previous topic - Next topic
Hi, I have an issue with DNS queries. Whenever I type on command line nslookup domain1.com the answer is always same which is

non-authoritative answer
Name: domain1.com.com
Addresses: 79.124.78.101
                   79.124.78.101

BUT when I type nslookup domain1 it gives .com end automatically and also IPs for it

Internet connections etc. work just fine, it's just bugging me as fuck having to leave .com from queries from each request

I'll submit image of what my issue is


PLZ Check your local domain name and the Domain search list in your DHCP scope.
I guess there is a 'com'  in the DHCP Option 119 or at the manual settings of your nic.

Thanks!!!!!
Quote from: stefanpf on May 01, 2020, 10:16:26 AM
PLZ Check your local domain name and the Domain search list in your DHCP scope.
I guess there is a 'com'  in the DHCP Option 119 or at the manual settings of your nic.

Something like that. Issue was DNS side of things I think.
I have my domain DNS hosted on VPS, this is why I think there was an issue.

My DHCP scope was fine and so was my NIC settings.

After banging my head on the wall for few minutes, it came to me and sure enough, that was at least something that had slight reason to be causing the issue.

On System -> Settings -> General on hostname field I had domain1, domain field had com and on DNS list there were my DNS servers which didn't have records for devices connected to local network (oh and I do have few ports forwarded to my OpnSense AND my PC hence the reason I'm not a telling the actual domain)

Way I fixed it, was to add www record to DNS server, set www to hostname field and domain.com on domain field and that's it!!!!  ;D (damn did I feel myself dumb -_-)