dns
dns copied to clipboard
DNS library in Go
Adds to `opt.String()` making the opt printing more like dig. The &0x7FFF is like dig, which doesn't display the DO flag even when set (see below) ``` ❯ dig +ednsflags=12...
When calling NewRR() on a TXT record, an escaped quote isn't properly de-escaped. A line such as: ``` example.com. IN TXT "inner\"quote" ``` It gets parsed to: `inner\"quote` I was...
This PR just demonstrates the bug. It is not intended for merge. See https://github.com/miekg/dns/issues/1384
This appears to be more of an issue with how `net.IP` works, with how e.g `::ffff:255.255.255.255` gets `.String()`-ed as `255.255.255.255`. IPv4 addresses do not get parsed as IPv4-mapped IPv6 addresses,...
I find the makeslice of ReadMsgHeader will cost much GC time. So I suggest to use bytes pool to avoid the GC cost.
In short: ```go package main import ( "fmt" "github.com/miekg/dns" ) func main() { a := &dns.A{} a2 := dns.Copy(a).(*dns.A) fmt.Println(a.A == nil, a2.A == nil) } ``` ```none true false...
I noticed that this library has a good `Cover()` method for NSEC3 RRs, but not for NSEC. This PR adds a similar `Cover()` method for NSEC, plus a `DomainCompare` function...
This causes problems on zone transfers where the server is hosting many different zone names. Passing the DNS Message via the context as a parameter opens up many possibilities for...
Hi @miekg, first of all, thanks for this awesome package. I'm using it for educational purposes and I'm trying to build my own dns proxy, and I found the `Exchange`...
This is more a call for help rather than an issue, where I just have zero clue how to properly generate the `dns.NSEC.TypeBitMap` value for a `dns.NSEC` response. I have...