Menu

wildcards

Help
2005-05-11
2013-04-22
  • bandurek patricio

    how to use wildcards in mysql-bind zones

    i try * and *.domain and not operate ok

    i need create this equiv zone

    @       IN      SOA     diegobarreto.com.ar. root.diegobarreto.com.ar. (
                                                    2003040213
                                                    8H
                                                    2H
                                                    1W
                                                    1D )
                                    NS      ns
                                    MX      10      mail.diegobarreto.com.ar.
    @               A       200.73.183.170
    www             A       200.73.183.170
    ftp             A       200.73.183.170
    irc             A       200.73.183.170
    pop3            A       200.73.183.170
    smtp            A       200.73.183.170
    mail            A       200.73.183.170
    ns              A       200.73.183.170
    *               A       200.73.183.170

    and all registers A OK but * not work

    zanks

     
    • Andreas Lund

      Andreas Lund - 2006-02-14

      You need to use FQDNs on both the left and right hand side in the database. I assume that bind automatically converts the data when reading plaintext files into its own internal database format.

       
  • pawz lion

    pawz lion - 2010-04-27

    Is that to say that wildcards are not supported ?
    Any way they can be hacked into the source ? I'm sure someone who knows the SDB interface better than myself could manage to make it work.

     
  • pawz lion

    pawz lion - 2010-04-28

    I spent some time going through the source to this SDB driver and I found that there is code in place to check for wildcard records if normal lookup fails, however it gets the domain wrong and a search for unknown.domain.com looks up *.unknown.domain.com when of course it should be looking up *.domain.com
    As such I modified the mysqldb.c file to match the domain properly and created a patch file that you can use to fix this bug in mysql-bind and get proper wildcard records working properly.
    The patch is at http://tiny.catpa.ws/uploads/2010/04/wildcard.patch and a full description of the change and instructions are available at http://tiny.catpa.ws/2010/04/28/fix-wildcard-support-in-mysql-bind-sdb-driver/

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.