You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Ntk_MX_request 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. == NTK_RFC 0004 ==
  2. Subject: Mail Exchange request
  3. ----
  4. This text describes how the MX DNS query are resolved by ANDNA.
  5. * WARNING *
  6. This RFC has been deprecated by the NTK_RFC 0009
  7. * WARNING *
  8. ----
  9. In the DNS the resolution of the MX field is handled directly by the DNS
  10. servers, in ANDNA, instead, the resolution of an MX hostname is a redirect
  11. request. In short it means that the request, instead of being sent to a
  12. hash_node, is sent to the register_node itself,
  13. == hname MX resolution ==
  14. The resolution of a MX hostnames in ANDNA works in this way:
  15. * We are trying to resolve the MX of the "pippo" hname.
  16. * "pippo" is resolved normally and the IP of the register_node is gained.
  17. * We ask to the register_node the IP of its MX.
  18. == hname MX registration ==
  19. Since the IP of the MX node can change during the time, the register_node must
  20. be aware of its current IP.
  21. It is the MX node itself that tells the register_node its current IP each time
  22. it changes. The MX node to contact the register_node has to simply resolve its
  23. hname.
  24. The register_node has to verify the authenticity of the IP update request,
  25. therefore the MX node will sign the request with the private key of the
  26. register_node.
  27. This system is necessary because the MX node and the register node have to be
  28. synced. In this way when the register_node dies or can't be reached anymore,
  29. the MX node can't be contacted too.
  30. Moreover this system prevents the spoofing of the MX node.
  31. The steps necessary to register a hname MX are:
  32. * Copy the ANDNA private key of the register node, which is saved in its lcl_cache, to the MX node:
  33. {{{
  34. register_node# scp /usr/share/netsukuku/andna_lcl_keyring mx_node:/etc/netsukuku/mx/<HNAME_MX>
  35. # <HNAME_MX> is the hname relative to the MX node
  36. }}}
  37. * Send a SIGHUP to the MX NetsukukuD:
  38. {{{
  39. register_node# ssh mx_node "killall -HUP ntkd"
  40. }}}
  41. If no MX is associated to an hostname, the register_node will use its own IP
  42. as the default MX IP.
  43. ----
  44. related: [Netsukuku_RFC]