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

Add support default port in /etc/resolver/* files #4

Open
nuxlli opened this issue Sep 29, 2014 · 3 comments
Open

Add support default port in /etc/resolver/* files #4

nuxlli opened this issue Sep 29, 2014 · 3 comments
Labels

Comments

@nuxlli
Copy link
Member

nuxlli commented Sep 29, 2014

No description provided.

@nuxlli nuxlli added the bug label Sep 29, 2014
@bAndie91
Copy link

It would be useful to assume default port to be 53, not 65535.

@nuxlli
Copy link
Member Author

nuxlli commented Oct 19, 2015

@bAndie91 the example added after instalation (/etc/resolver/default.dev) is for port 53(nameserver 127.0.0.1) and for port 5353 (nameserver 192.168.50.1). You can check this at: https://github.com/azukiapp/libnss-resolver/blob/master/src%2Fsamples%2Fetc%2Fresolver%2Fdefault.dev

I've created this issue just as a reminder to add support for the contracted form (nameserver host), using port 53 as you pointed. Even this is present in the sample file, it's not possible yet due to a limitation of the c-ares lib, which we use to resolve the requests.

Thank you for your concern!

@petterreinholdtsen
Copy link

I suspect the problem you experience is because nssrs_resolver_by_servers() to not initialize all fields in options struct, specifically options.tcp_port and options.udp_port. If you initialize them to 53, the port used will be 53.

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

No branches or pull requests

3 participants