Setting up a srv record with dnsmasq - do I need to use a FQDN?
up vote
1
down vote
favorite
I'm currently running a linux based/DIY router that provides a few additional services. I don't currently have a domain set up, and I'd like to set up a srv record for certain services hosted on the router itself. I'm using dnsmasq for internal DHCP and DNS. I do not have the domain option set but I can set an unused domain/subdomain for it
The router's internal ip is 192.168.1.1, and it has a hostname router
that seems to resolve from the other PCs.
This is what the appropriate line in the dnsmasq.conf looks like
# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 389 (using domain=)
#domain=example.com
#srv-host=_ldap._tcp,ldapserver.example.com,389
The example given in the dnsmasq looks like so - can I use any arbitrary valid domain for the domain - and can I use the ip address or a plain hostname like router for the host?
Or do I need to set a domain that I know isn't in use and use that for the hostname?
dns dnsmasq
add a comment |
up vote
1
down vote
favorite
I'm currently running a linux based/DIY router that provides a few additional services. I don't currently have a domain set up, and I'd like to set up a srv record for certain services hosted on the router itself. I'm using dnsmasq for internal DHCP and DNS. I do not have the domain option set but I can set an unused domain/subdomain for it
The router's internal ip is 192.168.1.1, and it has a hostname router
that seems to resolve from the other PCs.
This is what the appropriate line in the dnsmasq.conf looks like
# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 389 (using domain=)
#domain=example.com
#srv-host=_ldap._tcp,ldapserver.example.com,389
The example given in the dnsmasq looks like so - can I use any arbitrary valid domain for the domain - and can I use the ip address or a plain hostname like router for the host?
Or do I need to set a domain that I know isn't in use and use that for the hostname?
dns dnsmasq
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm currently running a linux based/DIY router that provides a few additional services. I don't currently have a domain set up, and I'd like to set up a srv record for certain services hosted on the router itself. I'm using dnsmasq for internal DHCP and DNS. I do not have the domain option set but I can set an unused domain/subdomain for it
The router's internal ip is 192.168.1.1, and it has a hostname router
that seems to resolve from the other PCs.
This is what the appropriate line in the dnsmasq.conf looks like
# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 389 (using domain=)
#domain=example.com
#srv-host=_ldap._tcp,ldapserver.example.com,389
The example given in the dnsmasq looks like so - can I use any arbitrary valid domain for the domain - and can I use the ip address or a plain hostname like router for the host?
Or do I need to set a domain that I know isn't in use and use that for the hostname?
dns dnsmasq
I'm currently running a linux based/DIY router that provides a few additional services. I don't currently have a domain set up, and I'd like to set up a srv record for certain services hosted on the router itself. I'm using dnsmasq for internal DHCP and DNS. I do not have the domain option set but I can set an unused domain/subdomain for it
The router's internal ip is 192.168.1.1, and it has a hostname router
that seems to resolve from the other PCs.
This is what the appropriate line in the dnsmasq.conf looks like
# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 389 (using domain=)
#domain=example.com
#srv-host=_ldap._tcp,ldapserver.example.com,389
The example given in the dnsmasq looks like so - can I use any arbitrary valid domain for the domain - and can I use the ip address or a plain hostname like router for the host?
Or do I need to set a domain that I know isn't in use and use that for the hostname?
dns dnsmasq
dns dnsmasq
asked Nov 15 at 21:10
Journeyman Geek♦
111k43216363
111k43216363
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Yes, you can use any valid domain for the domain.
Requesting a domain in your browser (or elsewhere) will first search your hosts file for fitting domains, then escalate that request to its registered DNS server (most likely your router) which will first parse it's own DNS entries (which is essentially too a hosts file). If your router does not find the correct entry it will escalate it to its own registered DNS server.
So to do that in your own network the easiest solution is to add an DNS record for this specific domain in your router and if your router has it add the same domain to it's DNS-Rebind-Protection to prevent any DNS requests for this domain to leave your local network.
You could for example even use external IP addresses like 8.8.8.8 as host name, but you'd have to reroute that request via Iptables or similar to prevent it from being routed straight to Google.
Fair warning: You won't be able to access the (real) domains/Ipaddresses if you remap them on your router.
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Yes, you can use any valid domain for the domain.
Requesting a domain in your browser (or elsewhere) will first search your hosts file for fitting domains, then escalate that request to its registered DNS server (most likely your router) which will first parse it's own DNS entries (which is essentially too a hosts file). If your router does not find the correct entry it will escalate it to its own registered DNS server.
So to do that in your own network the easiest solution is to add an DNS record for this specific domain in your router and if your router has it add the same domain to it's DNS-Rebind-Protection to prevent any DNS requests for this domain to leave your local network.
You could for example even use external IP addresses like 8.8.8.8 as host name, but you'd have to reroute that request via Iptables or similar to prevent it from being routed straight to Google.
Fair warning: You won't be able to access the (real) domains/Ipaddresses if you remap them on your router.
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
add a comment |
up vote
0
down vote
Yes, you can use any valid domain for the domain.
Requesting a domain in your browser (or elsewhere) will first search your hosts file for fitting domains, then escalate that request to its registered DNS server (most likely your router) which will first parse it's own DNS entries (which is essentially too a hosts file). If your router does not find the correct entry it will escalate it to its own registered DNS server.
So to do that in your own network the easiest solution is to add an DNS record for this specific domain in your router and if your router has it add the same domain to it's DNS-Rebind-Protection to prevent any DNS requests for this domain to leave your local network.
You could for example even use external IP addresses like 8.8.8.8 as host name, but you'd have to reroute that request via Iptables or similar to prevent it from being routed straight to Google.
Fair warning: You won't be able to access the (real) domains/Ipaddresses if you remap them on your router.
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
add a comment |
up vote
0
down vote
up vote
0
down vote
Yes, you can use any valid domain for the domain.
Requesting a domain in your browser (or elsewhere) will first search your hosts file for fitting domains, then escalate that request to its registered DNS server (most likely your router) which will first parse it's own DNS entries (which is essentially too a hosts file). If your router does not find the correct entry it will escalate it to its own registered DNS server.
So to do that in your own network the easiest solution is to add an DNS record for this specific domain in your router and if your router has it add the same domain to it's DNS-Rebind-Protection to prevent any DNS requests for this domain to leave your local network.
You could for example even use external IP addresses like 8.8.8.8 as host name, but you'd have to reroute that request via Iptables or similar to prevent it from being routed straight to Google.
Fair warning: You won't be able to access the (real) domains/Ipaddresses if you remap them on your router.
Yes, you can use any valid domain for the domain.
Requesting a domain in your browser (or elsewhere) will first search your hosts file for fitting domains, then escalate that request to its registered DNS server (most likely your router) which will first parse it's own DNS entries (which is essentially too a hosts file). If your router does not find the correct entry it will escalate it to its own registered DNS server.
So to do that in your own network the easiest solution is to add an DNS record for this specific domain in your router and if your router has it add the same domain to it's DNS-Rebind-Protection to prevent any DNS requests for this domain to leave your local network.
You could for example even use external IP addresses like 8.8.8.8 as host name, but you'd have to reroute that request via Iptables or similar to prevent it from being routed straight to Google.
Fair warning: You won't be able to access the (real) domains/Ipaddresses if you remap them on your router.
edited Nov 15 at 22:07
answered Nov 15 at 21:25
Nordlys Jeger
707216
707216
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
add a comment |
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
Which is fine - I can just use a subdomain on a domain I own just for SRV records of this sort, and it's purely for use inside my home lan
– Journeyman Geek♦
Nov 16 at 12:14
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375808%2fsetting-up-a-srv-record-with-dnsmasq-do-i-need-to-use-a-fqdn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown