Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I add a DNS record, through the GUI or command line, to Mac OS X Server that is simply the domain name (with no subdomain)?

For example I want to resolve http://foo.com to 192.168.1.100.

There is no facility in the GUI, it forces you to add a subdomain.

share|improve this question
    
(Just a guess) Try the at symbol: "@", it works on Bind and I'd be surprised if there's something else behind the scenes. –  Chris S Nov 12 '10 at 19:21
    
The GUI throughs an error saying "Numbers, letters, hypens only". What would the zone look like on the command line? @ IN A 192.168.1.100 –  Christopher Altman Nov 12 '10 at 19:32

1 Answer 1

Create a zone named "foo.com.", and inside it create a machine (A) record for "foo.com." -- the trailing period on the machine name indicates that the name is "fully qualified", and that the zone name shouldn't be implicitly added.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.