1(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["app/dns-helper/dns-settings"],{1769:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>k});var s=i(243),d=i(242),a=i(244),t=i.n(a),r=i(90),l=i(734),o=i(1770),c=i.n(o);const m=r.Locale.getTranslate("smb.components.dns-helper"),u=({isOpen:e,onClose:n,id:i,howToVideoUrl:a,isAlias:t})=>{const{loading:r,data:o}=(0,l.useQuery)(c(),{variables:{id:btoa(`${t?"DomainAlias":"Domain"}:${i}`)}});if(r)return null;const{viewer:u,node:{name:k,domain:v,ipAddresses:p,dnsZone:{nsRecords:g,aRecords:h}},dns:{registrars:x,extensions:S},config:{dns:{enableResolveChecking:j}},mode:{isDnsServiceSupported:f}}=o,N=g.map((e=>h.find((n=>n.host===e.value)))).filter((e=>!!e)),{ipv4:F,ipv6:b}=(t?v.ipAddresses:p).reduce(((e,{publicIpAddress:n,ipAddress:i})=>{const s=n||i;return e[s.includes(":")?"ipv6":"ipv4"]=s,e}),{}),A=j&&f;return(0,d.jsxs)(s.Drawer,{title:(0,d.jsx)(m,{content:"drawerTitle",params:{name:k}}),size:"sm",isOpen:e,onClose:n,"data-type":"dns-helper",children:[A?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{children:(0,d.jsx)(m,{content:"pleskResolve"})}),(0,d.jsx)("p",{children:(0,d.jsx)(s.Link,{"data-action":"openHowToVideo",href:a,target:"_blank",children:(0,d.jsx)(m,{content:"howToVideoLink"})})}),(0,d.jsx)("p",{children:(0,d.jsx)(m,{content:"domainSetup0"})}),(0,d.jsxs)("ol",{children:[(0,d.jsx)("li",{children:(0,d.jsx)(m,{content:"domainSetup1"})}),N.length>0?(0,d.jsxs)("li",{children:[(0,d.jsx)(m,{content:"domainSetup2",params:{glueLink:(0,d.jsx)(s.Link,{"data-action":"glueLink",href:"https://en.wikipedia.org/wiki/Domain_Name_System#Circular_dependencies_and_glue_records",target:"_blank",children:(0,d.jsx)("b",{children:(0,d.jsx)(m,{content:"glueRecords"})})})}}),(0,d.jsx)(s.Alert,{children:N.map((({host:e,value:n})=>(0,d.jsxs)("div",{children:[e," ",n]},n)))})]}):null,(0,d.jsxs)("li",{children:[(0,d.jsx)("p",{children:(0,d.jsx)(m,{content:"domainSetup3"})}),(0,d.jsx)(s.Alert,{children:g.map((({value:e})=>(0,d.jsxs)("div",{children:["NS"," ",e]},e)))})]})]}),(0,d.jsx)("p",{children:(0,d.jsx)(m,{content:"primaryDNS"})}),(0,d.jsx)("p",{children:(0,d.jsx)(m,{content:"forExample"})}),F?(0,d.jsxs)(s.Alert,{children:[`A @ ${F}`,(0,d.jsx)("br",{}),`A www ${F}`]}):null,b?(0,d.jsxs)(s.Alert,{children:[`AAAA @ ${b}`,(0,d.jsx)("br",{}),`AAAA www ${b}`]}):null]}):null,(0,d.jsx)(s.Paragraph,{children:(0,d.jsx)(m,{content:"chooseRegistrar"})}),(0,d.jsx)(s.Text,{italic:!0,bold:!0,children:(0,d.jsx)(s.Link,{"data-action":"chooseRegistrar",href:"https://www.icann.org/resources/pages/who-2013-05-03-en",target:"_blank",children:(0,d.jsx)(m,{content:"chooseRegistrarLink"})})}),(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,d.jsx)(s.Cuttable,{maxHeight:160,children:(0,d.jsxs)(s.ItemList,{minColumnWidth:250,gap:"xs",children:[x.map((({name:e,url:n})=>(0,d.jsx)(s.Item,{"data-action":e,icon:(0,d.jsx)(s.Icon,{name:"chevron-right",size:"12"}),title:(0,d.jsx)(s.Link,{href:n,target:"_blank",children:e})},e))),(0,d.jsx)(s.Item,{icon:(0,d.jsx)(s.Icon,{name:"chevron-right",size:"12"}),title:(0,d.jsx)(s.Link,{href:"https://pt-research.typeform.com/to/FkcDot10",target:"_blank",children:(0,d.jsx)(m,{content:"registrarSurveyLink"})})})]})}),"ADMIN"===u.type&&A?(0,d.jsx)(s.Alert,{intent:"default",children:(0,d.jsxs)(s.Status,{intent:"warning",children:[(0,d.jsx)(m,{content:"adminHintTitle"}),(0,d.jsxs)("ol",{children:[(0,d.jsxs)("li",{children:[(0,d.jsx)(m,{content:"addIpOption",params:{useIpLink:(0,d.jsx)(s.Text,{bold:!0,children:(0,d.jsx)(s.Link,{"data-action":"addSecondIpGuide",href:"http://docs.plesk.com/en-US/obsidian/administrator-guide/dns/providing-redundant-dns-servers.74239/#configure-at-least-two-ip-addresses-on-your-plesk-server",target:"_blank",children:(0,d.jsx)(m,{content:"useIpLink"})})})}}),(0,d.jsx)(s.Text,{bold:!0,children:(0,d.jsx)(m,{content:"example"})}),(0,d.jsxs)("ul",{children:[(0,d.jsx)("li",{children:(0,d.jsx)(s.Text,{italic:!0,children:"ns1.example.com 123.123.123.123"})}),(0,d.jsx)("li",{children:(0,d.jsx)(s.Text,{italic:!0,children:"ns2.example.com 124.124.124.124"})})]})]}),(0,d.jsx)("li",{children:(0,d.jsx)(m,{content:"slaveDnsOption",params:{slaveExtensionLink:(0,d.jsx)(s.Text,{bold:!0,children:(0,d.jsx)(s.Link,{"data-action":"slaveDnsExtension",href:"https://www.plesk.com/extensions/slave-dns-manager/",target:"_blank",children:(0,d.jsx)(m,{content:"slaveExtensionLink"})})})}})}),(0,d.jsx)("li",{children:(0,d.jsx)(m,{content:"extensionOption",params:{extensions:(0,d.jsx)(d.Fragment,{children:S.map((({name:e,url:n},i)=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.Link,{href:n,target:"_blank","data-action":e,children:e}),i<S.length-1?", ":""]},e)))})}})})]})]})}):null]})};u.propTypes={isOpen:t().bool.isRequired,onClose:t().func.isRequired,id:t().number.isRequired,howToVideoUrl:t().string.isRequired,isAlias:t().bool},u.defaultProps={isAlias:!1};const k=u},2111:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>t});var s=i(242),d=i(1769);const a=e=>
1{const[n,i]=(0,s.useState)(!0);return(0,s.jsx)(d.default,{isOpen:n,onClose:()=>i(!1),...e})},t=e=>{Plesk.addWidget(a,e)}},1770:e=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DnsSettingsDrawer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"idn"},value:{kind:"BooleanValue",value:!1}}],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ipAddressesFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"dnsZone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordsFields"},directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DomainAlias"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"idn"},value:{kind:"BooleanValue",value:!1}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"domain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ipAddressesFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dnsZone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordsFields"},directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"config"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enableResolveChecking"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dns"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"registrars"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"extensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"mode"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isDnsServiceSupported"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ipAddressesFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Domain"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ipAddresses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicIpAddress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ipAddress"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recordsFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DnsZone"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"nsRecords"},name:{kind:"Name",value:"records"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"}
1,value:{kind:"ListValue",values:[{kind:"EnumValue",value:"NS"}]}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"value"},value:{kind:"EnumValue",value:"asc"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordFields"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"aRecords"},name:{kind:"Name",value:"records"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"A"}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"recordFields"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"recordFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"DnsRecord"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"host"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}],loc:{start:0,end:1224}};n.loc.source={body:"query DnsSettingsDrawer($id: ID!) {\r\n node(id: $id) {\r\n id\r\n ... on Domain {\r\n name(idn: false)\r\n ...ipAddressesFields\r\n dnsZone {\r\n ...recordsFields\r\n }\r\n }\r\n ... on DomainAlias {\r\n name(idn: false)\r\n domain {\r\n ...ipAddressesFields\r\n }\r\n dnsZone {\r\n ...recordsFields\r\n }\r\n }\r\n }\r\n viewer {\r\n login\r\n type\r\n }\r\n config {\r\n dns {\r\n enableResolveChecking\r\n }\r\n }\r\n dns {\r\n registrars {\r\n name\r\n url\r\n }\r\n extensions {\r\n name\r\n url\r\n }\r\n }\r\n mode {\r\n isDnsServiceSupported\r\n }\r\n}\r\n\r\nfragment ipAddressesFields on Domain {\r\n ipAddresses {\r\n publicIpAddress\r\n ipAddress\r\n }\r\n}\r\n\r\nfragment recordsFields on DnsZone {\r\n nsRecords: records(filter: { type: [NS] }, orderBy: { value: asc }) {\r\n ...recordFields\r\n }\r\n aRecords: records(filter: { type: [A] }) {\r\n ...recordFields\r\n }\r\n}\r\n\r\nfragment recordFields on DnsRecord {\r\n host\r\n value\r\n type\r\n}\r\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var s=e.type;"NamedType"===s.kind&&n.add(s.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var s={};function d(e,n){for(var i=0;i<e.definitions.length;i++){var s=e.definitions[i];if(s.name&&s.name.value==n)return s}}function a(e,n){var i={kind:e.kind,definitions:[d(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=s[n]||new Set,t=new Set,r=new Set;for(a.forEach((function(e){r.add(e)}));r.size>0;){var l=r;r=new Set,l.forEach((function(e){t.has(e)||(t.add(e),(s[e]||new Set).forEach((function(e){r.add(e)})))}))}return t.forEach((function(n){var s=d(e,n);s&&i.definitions.push(s)})),i}n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),s[e.name.value]=n}})),e.exports=n,e.exports.DnsSettingsDrawer=a(n,"DnsSettingsDrawer"),e.exports.ipAddressesFields=a(n,"ipAddressesFields"),e.exports.recordsFields=a(n,"recordsFields"),e.exports.recordFields=a(n,"recordFields")}}]); 2//# sourceMappingURL=dns-settings.js.map?e1a2ee825b4c5c054015
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.