klundoffshore
asked on
Adding "single host" do DNS
Dont know how to explain this, but an example might do the trick.
We want to move this lines (wich are from the hosts file) to the DNS server
104.139.17.12 yay
104.139.17.12 yay.external.com
Yes the ips are the same. I really dont know why they have one with just the hostname.
But it has to be this way, otherwize it ownt work, guess they use some sort of hoastheader check.
We have a AD domian in DNS (our.ourdomian.com)
I had no problem adding yay.external.com to DNS.
by creating a zone called external.com and and a a record called yay.
but how to make yay work.
Tried to add a new zone called yay and one a record refering to parrent (Name = same as parent folder)
with IP 104.139.17.12.
Nslookup wont find it. if i type nslookup yay
if i under the yay zone add one a test record pointing to 104.139.17.12 then
nslookup test.yay works.
But ofcause just yay do not work.
Would really like to get this to work in DNS, i have also tried adding yay to our domain as an a record. But then adress becoms yay.ourdomian.com, witch gives problems with certificate and hoast header...
Do i really have to manage a lot of hostsfiles...
Thanx
We want to move this lines (wich are from the hosts file) to the DNS server
104.139.17.12 yay
104.139.17.12 yay.external.com
Yes the ips are the same. I really dont know why they have one with just the hostname.
But it has to be this way, otherwize it ownt work, guess they use some sort of hoastheader check.
We have a AD domian in DNS (our.ourdomian.com)
I had no problem adding yay.external.com to DNS.
by creating a zone called external.com and and a a record called yay.
but how to make yay work.
Tried to add a new zone called yay and one a record refering to parrent (Name = same as parent folder)
with IP 104.139.17.12.
Nslookup wont find it. if i type nslookup yay
if i under the yay zone add one a test record pointing to 104.139.17.12 then
nslookup test.yay works.
But ofcause just yay do not work.
Would really like to get this to work in DNS, i have also tried adding yay to our domain as an a record. But then adress becoms yay.ourdomian.com, witch gives problems with certificate and hoast header...
Do i really have to manage a lot of hostsfiles...
Thanx
@ thetman
nice answer! man your fast with screenshotting stuff-
good thing i have took another look on the page or I would have done the work for nothing -;)
nice answer! man your fast with screenshotting stuff-
good thing i have took another look on the page or I would have done the work for nothing -;)
ASKER
Thanx for quick answer, and going as far as lots of great screenshots.
I think thre is a misunderstanding, i am able to get the test.yay to work as stated in question:
"nslookup test.yay works."
As you can se from the hostfile i am able to use yay to stuff.
like an url
https://yay/
(without using the hostname " test")
You are pinging test.yay, but are you able to type
ping yay
?
when using the hostfile you can. There is my problem.
ping yay :)
this whole ting boils down to i want to ping to be able to type
https://yay/
and that would translate to an IP without using hostfile.
I think thre is a misunderstanding, i am able to get the test.yay to work as stated in question:
"nslookup test.yay works."
As you can se from the hostfile i am able to use yay to stuff.
like an url
https://yay/
(without using the hostname " test")
You are pinging test.yay, but are you able to type
ping yay
?
when using the hostfile you can. There is my problem.
ping yay :)
this whole ting boils down to i want to ping to be able to type
https://yay/
and that would translate to an IP without using hostfile.
ASKER
lots of typos in my comment above, but i hope you get the point.
C:\>ping yay
Pinging yay [104.139.17.12] with 32 bytes of data:
Reply from 125.235.248.26: TTL expired in transit.
Ping statistics for 104.139.17.12:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Control-C
^C
C:\>
Of couse it can, because it's normal A record
Pinging yay [104.139.17.12] with 32 bytes of data:
Reply from 125.235.248.26: TTL expired in transit.
Ping statistics for 104.139.17.12:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Control-C
^C
C:\>
Of couse it can, because it's normal A record
You can resolution yay when you create a record with blank name in yay zone. In dns02.png did you see I must create a blank name A record (it means yay. alone) with IP x.x.x.12
And from client I can ping yay as normal.
If you want resolution abc with IP x.x.x.x for many clients, you should create zone as my example above. But if you only want for your use only, edit your hosts file will be more handy choice.
And from client I can ping yay as normal.
If you want resolution abc with IP x.x.x.x for many clients, you should create zone as my example above. But if you only want for your use only, edit your hosts file will be more handy choice.
In my example, I use yay = x.x.x.12 and test.yay = x.x.x.13 for you too see the different.
Hope this help
Hope this help
ASKER
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanx a lot guys for a quick resolve, have split the points, fiar, i guess. To bad our provider does not use FQDN, then this thread would not exist :) Agian, cheers, and thanx, you made my day.
as clarification
if you configure a zone for yay, and then an A record for the host yay within.
since your machines are on a domain, their dns suffix (i guess you pass it with DHCP), is yourdomain.ch.
so every dns request that has only hostname and not FQDN (fully qualified domain name) will be translatet to host.yourdomain.com
i will lookup how to fix your problem, give me a sec.