New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
DNS - Redirecting to sub.anotherdomain.com:69 using A records?
Hi,
Is it possible to make A records redirect to a subdomain from some other server? perhaps with port or path included? if not what kind of record do i need to add?
i got these options:
screenshot: http://puu.sh/hjfTM/914ef50309.png
screenshot 2: http://puu.sh/hjg6g/ac098bee6d.png
Thanks!
Comments
to clarify it more,
im working on a python script that will at some point connect to subdomain.domain.com
i want that the dns server redirects subdomain.domain.com to subdomain.domain2.com:69/db/29401.py
Not possible with just DNS. There are registrars that have free URL forwarding - this would be what you need. Or code your own.
are you sure about that? what about the SRV record? could i use that for this purpose and link an A record to the SRV one?
@Mark_R can't you just use domain redirect instead of DNS?
While you can link to the specific IP:port, I have never seen a way to link to an specific file like what you mentioned here. Maybe it's possible.
Yes i could make the python script takeover the DNS stuff but i rather try to keep everything on the DNS side, its easier to globally modify DNS and have the script detect that and following it instead of pushing through script updates to the users.
IP:port would be enough for me, i can make the server that is listening to the port redirect to the specific path using index files. what record would i need for IP/domain:port redirect?
Not completely sure I haven't missed anything (look it up first), but I think this would do with the example settings you gave me:
Assuming server is at 1.2.3.4
subdomain.domain2.com => 1.2.3.4
subdomain.domain.com
with:subdomain.domain2.com
69
Basically it's what you said, make the SRV point to the A.
Not Sure about the Port but pointing a Sub-Domain to other Server is just done by A Record. Maybe, @Traffic is correct about the Port.
That setup should work. But only if the client used by @Mark_R supports SRV records (many don't, browsers for example)
Yeah, i will have to import an additional library to make this happen
http://sourceforge.net/projects/pydns/
but im going to run a few other tests first to see whats best.
Oh, I'm not aware of it. Which browsers ??
Browsers as such do not support SRV at all
If the only thing that accesses those records is your python script, might as well just use TXT records.