Solved

Adding "single host"  do DNS

Posted on 2009-05-12
12
260 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
  • 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
 

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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now