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.

I'm using PFSenses 2.0 in our development environment.

I'm depending on the DNS Forwarder to add DNS entries for new DHCP leases. This is working well, though I need to add support for wildcards to these DNS entries.

I know you can use address=/com/192.168.2.1 to set a wildcard, but I don't know the IP address of the machine yet.

An example scenario:

A new vm starts and issues a DHCP Request with hostname "stage01" on the domain example.com Once it is provided an IP, the DNS correctly resolves stage01.example.com to that domain. Though I also require *.stage01.example.com to resolve to this address.

Since I do not know the MAC or IP address ahead of time, is there a way to configure this?

share|improve this question
add comment

1 Answer

The best way I can think of would be to simply CNAME *.stage01.example.com to point at stage01.example.com in your DNS server.

The dynamic update will change stage01.example.com's address, and the wildcard CNAME will take care of the rest for you.

share|improve this answer
add comment

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.