Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure to initialize options struct and make 53 the default DNS server port. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petterreinholdtsen
Copy link

This should address issue #4.

@fearenales
Copy link
Contributor

@petterreinholdtsen I wasn't able to make this work. I used Ubuntu 14.04 in my tests.

I installed libnss-resolver from your branch, and set the /etc/resolver/test.resolver file as the following:

# /etc/resolver/test.resolver
nameserver 127.0.0.1

Since the port is not defined, libnss-resolver should assume 53.

Then I started dnsmasq:

sudo dnsmasq --bind-interfaces -p 53 --no-daemon --address=/test.resolver/127.0.0.1

Then I tried to ping it:

$ ping test.resolver
ping: unknown host test.resolver

Specifying the port in the /etc/resolver/test.resolver file:

# /etc/resolver/test.resolver
nameserver 127.0.0.1:53

And trying to ping:

$ ping test.resolver
PING test.resolver (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms

I'm missing something? How did you do your tests?

@petterreinholdtsen
Copy link
Author

I no longer remember, I must admit. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants