Link to home
Start Free TrialLog in
Avatar of klundoffshore
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
Avatar of gilget
gilget

hello
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.
No,

Just because you are not clear about DNS Stuff, look at my test zone below and you will understand how it's work.
Then you can add many more as you wish, forget about hosts file.

Good luck
dns01.png
dns02.png
dns03.png
dns04.png
@ 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 -;)
Avatar of klundoffshore

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.

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
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.
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
ok, where do i go wrong then, posting step by step images here:

I am creating a blank a record.
(at the end i get an error, but it does not seem to affect what shows in the console)

On a side note, the ip's and host names are not real
1.png
2.png
3.png
4.png
5.png
6.png
7.png
8.png
9.png
81.png
SOLUTION
Avatar of gilget
gilget

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.