Solved

Adding "single host"  do DNS

Posted on 2009-05-12
12
264 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:klundoffshore
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 3
12 Comments
 
LVL 4

Expert Comment

by:gilget
ID: 24363868
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.
0
 
LVL 8

Expert Comment

by:thetmanvn
ID: 24363889
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
0
 
LVL 4

Expert Comment

by:gilget
ID: 24363931
@ 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 -;)
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 

Author Comment

by:klundoffshore
ID: 24364397
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.

0
 

Author Comment

by:klundoffshore
ID: 24364423
lots of typos in my comment above, but i hope you get the point.
0
 
LVL 8

Expert Comment

by:thetmanvn
ID: 24364425
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
0
 
LVL 8

Expert Comment

by:thetmanvn
ID: 24364473
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.
0
 
LVL 8

Expert Comment

by:thetmanvn
ID: 24364495
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
0
 

Author Comment

by:klundoffshore
ID: 24364712
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
0
 
LVL 4

Assisted Solution

by:gilget
gilget earned 200 total points
ID: 24364786
hello yay

your configuration of your ZONE for YAY and the host in it is just fine.

but to make your workstations of the domain be able to find that record, you need to have a forwarder in your default ZONE that you pass using the DHCP.

Right click your default zone in the menu, then "add domain".
if you have typed the domain mydomain.com
this will make a new folder called "com"
and inside of that a folder called "yourdomain"
and inside of that is where you make your A record pointing to yay.
regards
tiz
0
 
LVL 8

Accepted Solution

by:
thetmanvn earned 300 total points
ID: 24366534
A little weirdo here,

When I go back to my room, it is another subnet behind one router to my subnet that my DNS server located.
And when I re-test,

I must use FQDN yay. instead of yay to get it work. So if you don't mind, in this case, use FQDN "hostname" to work out.

C:\>ping yay
Ping request could not find host yay. Please check the name and try again.

C:\>ping yay.

Pinging yay [104.139.17.12] with 32 bytes of data:
Control-C
^C
C:\>

Tried to test in gilget way but not successfully.

Dig more about DNS System, It seem not accept the way you treat top level domain with out use it in FQDN format. Tested with both Windows DNS server and Bind9. So that's why every system from Windows, Linux, Unix still have hosts file in its system. If you want to use single hostname without FQDN format, should you hosts file. So that's why I said a little weirdo in my first test, it can resolve yay without "." one time.
0
 

Author Closing Comment

by:klundoffshore
ID: 31580500
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question