Re: [Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread Bernd Prager


On 8/4/20 3:36 AM, Andrew Miskell wrote:



On Aug 3, 2020, at 3:06 PM, Geert Stappers  wrote:

On Mon, Aug 03, 2020 at 07:04:47PM +0200, No Yes No Questions wrote:

On Mon, Aug 03, 2020 at 10:44:07PM +0700, Bernd Prager wrote:

Hi all,

I got something I can't wrap my head around. I have a QNAP NAS that I
thought would be nice for hosting a DNSMASQ service for DNS and DHCP. Setup
went smooth and all my Linux clients behave wonderfully, except my Mac
client:

Querying a host from Linux goes perfect:

-=[22:29:35][bernd@hoenir ~]=-
  dig @qnap freyja

; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;freyja.IN  A

;; ANSWER SECTION:
freyja. 0   IN  A 192.168.1.7

;; Query time: 0 msec
;; SERVER: 192.168.1.5#53(192.168.1.5)

.5



;; WHEN: Mon Aug 03 22:29:37 +07 2020
;; MSG SIZE  rcvd: 51

-=[22:29:37][bernd@hoenir ~]=-
  ping -c 1 freyja
PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64
time=131 ms

--- freyja.prager.homeip.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms

Now the same query from my Mac sees the host but still can't connect to it:

[bernd@loki ~$ dig @qnap freyja

; <<>> DiG 9.10.6 <<>> @qnap freyja
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;freyja.INA

;; ANSWER SECTION:
freyja.0INA192.168.1.7

;; Query time: 7 msec
;; SERVER: 192.168.1.5#53(192.168.1.5)

The same .5



;; WHEN: Mon Aug 03 22:29:25 +07 2020
;; MSG SIZE  rcvd: 51

[bernd@loki ~$ ping -c 1 freyja
ping: cannot resolve freyja: Unknown host

Does anybody have an idea what I am missing?

Yes


DNS query tool `dig` at the Linux system does add domain name to the request.

`dig` at the MacOS system doesn't add a domain name, which is correct behaviour.


For `ping` is it OK to add a domainname. It seems the Mac is not aware
of domain name.

Find a way to tell the Mac about the .prager.homeip.net domain name.


Groeten
Geert Stappers
--
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

macOS will know about the domain if it’s told by the DNS server via DHCP.

However, macOS will cache information and sometimes will need a forced reset to pick 
things up. Using "dscacheutil -flushcache;sudo killall -HUP mDNSResponder” 
should reset the DNS cache on macOS.


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



Thank you all for your kind help. I wanted to give the list a quick update:

While I have not resolved the issue yet, despite trying all the 
suggestions above (except Geert's ".5" comment which I need to do some 
research on what that actually means), I have nailed the likely culprit 
to the NordVPN I have running with my particular user. Pinging my other 
Intranet-Hosts from any other user on my Mac without the VPN running 
actually works. It seems that the VPN does something to my network 
configuration that its not telling me. The Mac DNS utility still claims 
to point to my DNSMASQ instance.


By the way, pinging my internal host with a full domain name 
freyja.prager.homeip.net resolves to my DynDNS external network IP address.


Cheers,
-- Bernd


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread Andrew Miskell


> On Aug 3, 2020, at 3:06 PM, Geert Stappers  wrote:
> 
> On Mon, Aug 03, 2020 at 07:04:47PM +0200, No Yes No Questions wrote:
>> On Mon, Aug 03, 2020 at 10:44:07PM +0700, Bernd Prager wrote:
>>> Hi all,
>>> 
>>> I got something I can't wrap my head around. I have a QNAP NAS that I
>>> thought would be nice for hosting a DNSMASQ service for DNS and DHCP. Setup
>>> went smooth and all my Linux clients behave wonderfully, except my Mac
>>> client:
>>> 
>>> Querying a host from Linux goes perfect:
>>> 
>>> -=[22:29:35][bernd@hoenir ~]=-
>>>  dig @qnap freyja
>>> 
>>> ; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
>>> ;; Got answer:
>>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
>>> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
>>> 
>>> ;; QUESTION SECTION:
>>> ;freyja.IN  A
>>> 
>>> ;; ANSWER SECTION:
>>> freyja. 0   IN  A 192.168.1.7
>>> 
>>> ;; Query time: 0 msec
>>> ;; SERVER: 192.168.1.5#53(192.168.1.5)
>> 
>> .5
>> 
>> 
>>> ;; WHEN: Mon Aug 03 22:29:37 +07 2020
>>> ;; MSG SIZE  rcvd: 51
>>> 
>>> -=[22:29:37][bernd@hoenir ~]=-
>>>  ping -c 1 freyja
>>> PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
>>> 64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64
>>> time=131 ms
>>> 
>>> --- freyja.prager.homeip.net ping statistics ---
>>> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
>>> rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms
>>> 
>>> Now the same query from my Mac sees the host but still can't connect to it:
>>> 
>>> [bernd@loki ~$ dig @qnap freyja
>>> 
>>> ; <<>> DiG 9.10.6 <<>> @qnap freyja
>>> ;; Got answer:
>>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
>>> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
>>> 
>>> ;; QUESTION SECTION:
>>> ;freyja.INA
>>> 
>>> ;; ANSWER SECTION:
>>> freyja.0INA192.168.1.7
>>> 
>>> ;; Query time: 7 msec
>>> ;; SERVER: 192.168.1.5#53(192.168.1.5)
>> 
>> The same .5
>> 
>> 
>>> ;; WHEN: Mon Aug 03 22:29:25 +07 2020
>>> ;; MSG SIZE  rcvd: 51
>>> 
>>> [bernd@loki ~$ ping -c 1 freyja
>>> ping: cannot resolve freyja: Unknown host
>>> 
>>> Does anybody have an idea what I am missing?
>> 
>> Yes
>> 
> 
> DNS query tool `dig` at the Linux system does add domain name to the request.
> 
> `dig` at the MacOS system doesn't add a domain name, which is correct 
> behaviour.
> 
> 
> For `ping` is it OK to add a domainname. It seems the Mac is not aware
> of domain name.
> 
> Find a way to tell the Mac about the .prager.homeip.net domain name.
> 
> 
> Groeten
> Geert Stappers
> -- 
> Silence is hard to parse
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

macOS will know about the domain if it’s told by the DNS server via DHCP.

However, macOS will cache information and sometimes will need a forced reset to 
pick things up. Using "dscacheutil -flushcache;sudo killall -HUP mDNSResponder” 
should reset the DNS cache on macOS.


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread Geert Stappers
On Mon, Aug 03, 2020 at 07:04:47PM +0200, No Yes No Questions wrote:
> On Mon, Aug 03, 2020 at 10:44:07PM +0700, Bernd Prager wrote:
> > Hi all,
> > 
> > I got something I can't wrap my head around. I have a QNAP NAS that I
> > thought would be nice for hosting a DNSMASQ service for DNS and DHCP. Setup
> > went smooth and all my Linux clients behave wonderfully, except my Mac
> > client:
> > 
> > Querying a host from Linux goes perfect:
> > 
> > -=[22:29:35][bernd@hoenir ~]=-
> >  dig @qnap freyja
> > 
> > ; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
> > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> > 
> > ;; QUESTION SECTION:
> > ;freyja.    IN  A
> > 
> > ;; ANSWER SECTION:
> > freyja. 0   IN  A 192.168.1.7
> > 
> > ;; Query time: 0 msec
> > ;; SERVER: 192.168.1.5#53(192.168.1.5)
> 
> .5
> 
> 
> > ;; WHEN: Mon Aug 03 22:29:37 +07 2020
> > ;; MSG SIZE  rcvd: 51
> > 
> > -=[22:29:37][bernd@hoenir ~]=-
> >  ping -c 1 freyja
> > PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
> > 64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64
> > time=131 ms
> > 
> > --- freyja.prager.homeip.net ping statistics ---
> > 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> > rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms
> > 
> > Now the same query from my Mac sees the host but still can't connect to it:
> > 
> > [bernd@loki ~$ dig @qnap freyja
> > 
> > ; <<>> DiG 9.10.6 <<>> @qnap freyja
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
> > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> > 
> > ;; QUESTION SECTION:
> > ;freyja.                IN    A
> > 
> > ;; ANSWER SECTION:
> > freyja.            0    IN    A    192.168.1.7
> > 
> > ;; Query time: 7 msec
> > ;; SERVER: 192.168.1.5#53(192.168.1.5)
> 
> The same .5
> 
> 
> > ;; WHEN: Mon Aug 03 22:29:25 +07 2020
> > ;; MSG SIZE  rcvd: 51
> > 
> > [bernd@loki ~$ ping -c 1 freyja
> > ping: cannot resolve freyja: Unknown host
> > 
> > Does anybody have an idea what I am missing?
> 
> Yes
> 

DNS query tool `dig` at the Linux system does add domain name to the request.

`dig` at the MacOS system doesn't add a domain name, which is correct behaviour.


For `ping` is it OK to add a domainname. It seems the Mac is not aware
of domain name.

Find a way to tell the Mac about the .prager.homeip.net domain name.


Groeten
Geert Stappers
-- 
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread Rob Townley
On the MAC, try appending the FQDN prager.homeip.net to the hostname:
freyja.prager.homeip.net

If that points to the problem, I do not own an Apple MAC, so can not tell
you how to have it include domain name by default.

Also, trying pinging the IP directly.

On Mon, Aug 3, 2020 at 2:01 PM Dan Schaper  wrote:

> Geert,
>
> Can you go find another hobby or somewhere else to troll? I have yet to
> see any kind of usefulness to your belittling users and their questions.
>
> And the cutesy changing of your name along with the witty only to you
> signatures are quite draining.
>
> Dan
>
> No Yes No Questions wrote on 8/3/2020 10:04 AM:
> > On Mon, Aug 03, 2020 at 10:44:07PM +0700, Bernd Prager wrote:
> >> Hi all,
> >>
> >> I got something I can't wrap my head around. I have a QNAP NAS that I
> >> thought would be nice for hosting a DNSMASQ service for DNS and DHCP.
> Setup
> >> went smooth and all my Linux clients behave wonderfully, except my Mac
> >> client:
> >>
> >> Querying a host from Linux goes perfect:
> >>
> >> -=[22:29:35][bernd@hoenir ~]=-
> >>  dig @qnap freyja
> >>
> >> ; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
> >> ; (1 server found)
> >> ;; global options: +cmd
> >> ;; Got answer:
> >> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
> >> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> >>
> >> ;; OPT PSEUDOSECTION:
> >> ; EDNS: version: 0, flags:; udp: 4096
> >> ;; QUESTION SECTION:
> >> ;freyja.IN  A
> >>
> >> ;; ANSWER SECTION:
> >> freyja. 0   IN  A 192.168.1.7
> >>
> >> ;; Query time: 0 msec
> >> ;; SERVER: 192.168.1.5#53(192.168.1.5)
> > .5
> >
> >
> >> ;; WHEN: Mon Aug 03 22:29:37 +07 2020
> >> ;; MSG SIZE  rcvd: 51
> >>
> >> -=[22:29:37][bernd@hoenir ~]=-
> >>  ping -c 1 freyja
> >> PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
> >> 64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64
> >> time=131 ms
> >>
> >> --- freyja.prager.homeip.net ping statistics ---
> >> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> >> rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms
> >>
> >> Now the same query from my Mac sees the host but still can't connect to
> it:
> >>
> >> [bernd@loki ~$ dig @qnap freyja
> >>
> >> ; <<>> DiG 9.10.6 <<>> @qnap freyja
> >> ; (1 server found)
> >> ;; global options: +cmd
> >> ;; Got answer:
> >> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
> >> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> >>
> >> ;; OPT PSEUDOSECTION:
> >> ; EDNS: version: 0, flags:; udp: 4096
> >> ;; QUESTION SECTION:
> >> ;freyja.INA
> >>
> >> ;; ANSWER SECTION:
> >> freyja.0INA192.168.1.7
> >>
> >> ;; Query time: 7 msec
> >> ;; SERVER: 192.168.1.5#53(192.168.1.5)
> > The same .5
> >
> >
> >> ;; WHEN: Mon Aug 03 22:29:25 +07 2020
> >> ;; MSG SIZE  rcvd: 51
> >>
> >> [bernd@loki ~$ ping -c 1 freyja
> >> ping: cannot resolve freyja: Unknown host
> >>
> >> Does anybody have an idea what I am missing?
> > Yes
> >
> >
> >> Thank you for any help.
> > You are welcome
> > I'm looking forward to better questions
> >
> >
> > Regards
> > Geert Stappers
>
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread Dan Schaper
Geert,

Can you go find another hobby or somewhere else to troll? I have yet to
see any kind of usefulness to your belittling users and their questions.

And the cutesy changing of your name along with the witty only to you
signatures are quite draining.

Dan

No Yes No Questions wrote on 8/3/2020 10:04 AM:
> On Mon, Aug 03, 2020 at 10:44:07PM +0700, Bernd Prager wrote:
>> Hi all,
>>
>> I got something I can't wrap my head around. I have a QNAP NAS that I
>> thought would be nice for hosting a DNSMASQ service for DNS and DHCP. Setup
>> went smooth and all my Linux clients behave wonderfully, except my Mac
>> client:
>>
>> Querying a host from Linux goes perfect:
>>
>> -=[22:29:35][bernd@hoenir ~]=-
>>  dig @qnap freyja
>>
>> ; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
>> ; (1 server found)
>> ;; global options: +cmd
>> ;; Got answer:
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
>> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
>>
>> ;; OPT PSEUDOSECTION:
>> ; EDNS: version: 0, flags:; udp: 4096
>> ;; QUESTION SECTION:
>> ;freyja.    IN  A
>>
>> ;; ANSWER SECTION:
>> freyja. 0   IN  A 192.168.1.7
>>
>> ;; Query time: 0 msec
>> ;; SERVER: 192.168.1.5#53(192.168.1.5)
> .5
>
>
>> ;; WHEN: Mon Aug 03 22:29:37 +07 2020
>> ;; MSG SIZE  rcvd: 51
>>
>> -=[22:29:37][bernd@hoenir ~]=-
>>  ping -c 1 freyja
>> PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
>> 64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64
>> time=131 ms
>>
>> --- freyja.prager.homeip.net ping statistics ---
>> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
>> rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms
>>
>> Now the same query from my Mac sees the host but still can't connect to it:
>>
>> [bernd@loki ~$ dig @qnap freyja
>>
>> ; <<>> DiG 9.10.6 <<>> @qnap freyja
>> ; (1 server found)
>> ;; global options: +cmd
>> ;; Got answer:
>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
>> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
>>
>> ;; OPT PSEUDOSECTION:
>> ; EDNS: version: 0, flags:; udp: 4096
>> ;; QUESTION SECTION:
>> ;freyja.                IN    A
>>
>> ;; ANSWER SECTION:
>> freyja.            0    IN    A    192.168.1.7
>>
>> ;; Query time: 7 msec
>> ;; SERVER: 192.168.1.5#53(192.168.1.5)
> The same .5
>
>
>> ;; WHEN: Mon Aug 03 22:29:25 +07 2020
>> ;; MSG SIZE  rcvd: 51
>>
>> [bernd@loki ~$ ping -c 1 freyja
>> ping: cannot resolve freyja: Unknown host
>>
>> Does anybody have an idea what I am missing?
> Yes
>
>
>> Thank you for any help.
> You are welcome
> I'm looking forward to better questions
>
>
> Regards
> Geert Stappers




smime.p7s
Description: S/MIME Cryptographic Signature
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread No Yes No Questions
On Mon, Aug 03, 2020 at 10:44:07PM +0700, Bernd Prager wrote:
> Hi all,
> 
> I got something I can't wrap my head around. I have a QNAP NAS that I
> thought would be nice for hosting a DNSMASQ service for DNS and DHCP. Setup
> went smooth and all my Linux clients behave wonderfully, except my Mac
> client:
> 
> Querying a host from Linux goes perfect:
> 
> -=[22:29:35][bernd@hoenir ~]=-
>  dig @qnap freyja
> 
> ; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;freyja.    IN  A
> 
> ;; ANSWER SECTION:
> freyja. 0   IN  A 192.168.1.7
> 
> ;; Query time: 0 msec
> ;; SERVER: 192.168.1.5#53(192.168.1.5)

.5


> ;; WHEN: Mon Aug 03 22:29:37 +07 2020
> ;; MSG SIZE  rcvd: 51
> 
> -=[22:29:37][bernd@hoenir ~]=-
>  ping -c 1 freyja
> PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
> 64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64
> time=131 ms
> 
> --- freyja.prager.homeip.net ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms
> 
> Now the same query from my Mac sees the host but still can't connect to it:
> 
> [bernd@loki ~$ dig @qnap freyja
> 
> ; <<>> DiG 9.10.6 <<>> @qnap freyja
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
> 
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;freyja.                IN    A
> 
> ;; ANSWER SECTION:
> freyja.            0    IN    A    192.168.1.7
> 
> ;; Query time: 7 msec
> ;; SERVER: 192.168.1.5#53(192.168.1.5)

The same .5


> ;; WHEN: Mon Aug 03 22:29:25 +07 2020
> ;; MSG SIZE  rcvd: 51
> 
> [bernd@loki ~$ ping -c 1 freyja
> ping: cannot resolve freyja: Unknown host
> 
> Does anybody have an idea what I am missing?

Yes


> Thank you for any help.

You are welcome
I'm looking forward to better questions


Regards
Geert Stappers
-- 
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Mac Darwin confusion

2020-08-03 Thread Bernd Prager

Hi all,

I got something I can't wrap my head around. I have a QNAP NAS that I 
thought would be nice for hosting a DNSMASQ service for DNS and DHCP. 
Setup went smooth and all my Linux clients behave wonderfully, except my 
Mac client:


Querying a host from Linux goes perfect:

-=[22:29:35][bernd@hoenir ~]=-
 dig @qnap freyja

; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> @qnap freyja
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24213
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;freyja.    IN  A

;; ANSWER SECTION:
freyja. 0   IN  A 192.168.1.7

;; Query time: 0 msec
;; SERVER: 192.168.1.5#53(192.168.1.5)
;; WHEN: Mon Aug 03 22:29:37 +07 2020
;; MSG SIZE  rcvd: 51

-=[22:29:37][bernd@hoenir ~]=-
 ping -c 1 freyja
PING freyja.prager.homeip.net (192.168.1.7) 56(84) bytes of data.
64 bytes from freyja.prager.homeip.net (192.168.1.7): icmp_seq=1 ttl=64 
time=131 ms


--- freyja.prager.homeip.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 131.374/131.374/131.374/0.000 ms

Now the same query from my Mac sees the host but still can't connect to it:

[bernd@loki ~$ dig @qnap freyja

; <<>> DiG 9.10.6 <<>> @qnap freyja
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54217
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;freyja.                IN    A

;; ANSWER SECTION:
freyja.            0    IN    A    192.168.1.7

;; Query time: 7 msec
;; SERVER: 192.168.1.5#53(192.168.1.5)
;; WHEN: Mon Aug 03 22:29:25 +07 2020
;; MSG SIZE  rcvd: 51

[bernd@loki ~$ ping -c 1 freyja
ping: cannot resolve freyja: Unknown host

Does anybody have an idea what I am missing? Thank you for any help.

Cheers,
-- Bernd



___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?

2020-08-03 Thread Petr Menšík
Hi Chris,

I think the most proper way is to change hostname of machine to
something sensible. When you do not want random hostname, give it some
name. And let it use them.

Is there reason, why you cannot change name of the device on device
itself? Have you tried to supply hostname on dhcp-record for the printer?

Default names are used in a way to prevent collisions on larger network.
If you have only few devices, give them shorter names.

Cheers,
Petr

On 8/2/20 2:39 PM, Chris Green wrote:
> I have a couple of systems on my home LAN which have long, not very
> useful, names, e.g.:-
> 
> DESKTOP-978VD5M - An MS Windows machine
> MC342-AE529C - An OKI printer
> 
> I have added cname entries as follows in my dnsmasq.conf :-
> 
> cname=ben,DESKTOP-978VD5M
> cname=oki,MC342-AE529C
> 
> So I can refer to them as 'ben' and 'oki'.
> 
> However it would be even better if the names 'ben' and 'oki' were
> returned when I use 'host', 'arp-scan' or similar commands.  Is there
> a way of getting dnsmasq to do this (preferably without losing the
> ability to use the long, unmemorable, names as well)?
> 

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemen...@redhat.com
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss