FAQ
Hi,

I'm trying to get the domain key for google.com as such:

package main

import (
"log"
"net"
)

func main() {
txts, err := net.LookupTXT("20120113._domainkey.google.com")
if err != nil {
log.Fatal(err)
}
log.Println(txts)
}

The program fails with:
2013/06/17 21:44:21 lookup 20120113._domainkey.google.com. on
[192.168.1.1]:53: no such host

I suspect the key's too long and that the function doesn't fallback to TCP
because I'm not seeing a TCP request on port 53 after the UDP queries on
port 53. It's failing on version 1.1.1 on both Mac OS X and Linux with
different DNS servers.

Does anybody gets this to work on their environment? Is there something to
do to enable TCP fallback for DNS?

Thanks,
Frederik

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Islan Dberry at Jun 18, 2013 at 3:07 pm
    Open issue on this topic: https://code.google.com/p/go/issues/detail?id=5686

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Frederik Deweerdt at Jun 18, 2013 at 3:12 pm

    On Tuesday, June 18, 2013 8:07:41 AM UTC-7, Islan Dberry wrote:

    Open issue on this topic:
    https://code.google.com/p/go/issues/detail?id=5686

    I see, thanks for the pointer. 'golang dns tcp fallback' didn't return any
    results. It'll do now :)

    Frederik

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJun 18, '13 at 1:24p
activeJun 18, '13 at 3:12p
posts3
users2
websitegolang.org

2 users in discussion

Frederik Deweerdt: 2 posts Islan Dberry: 1 post

People

Translate

site design / logo © 2021 Grokbase